You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am have error on npm run production, and its killing me :(
/js/shapecss.js from UglifyJs Unexpected token: name (Accordion) [./~/shapecss/resources/assets/js/component/Accordion.js:1,0][/js/shapecss.js:19054,6]
I am using shapecss developed in laravel mix.
here is code is look like on main js entry file shape.js,
directory is, https://github.com/MicroDreamIT/shapecss-framework/blob/master/resources/assets/js/shape.js
'use strict';
import {Accordion} from "./component/Accordion";
import {Modal} from "./component/Modal";
import {getTab} from "./component/Tab";
import {Nav} from "./component/Nav";
import {Circle} from "./component/shapes/Circle";
import {Parallelogram} from "./component/shapes/Parallelogram";
import {Rectangle} from "./component/shapes/Rectangle";
import {Square} from "./component/shapes/Square";
window.onload = function () {
new Accordion();
new Modal();
getTab();
new Nav();
new Circle();
new Parallelogram();
new Rectangle();
new Square();
}
Accordion class is look like,
I am have error on npm run production, and its killing me :(
/js/shapecss.js from UglifyJs Unexpected token: name (Accordion) [./~/shapecss/resources/assets/js/component/Accordion.js:1,0][/js/shapecss.js:19054,6]
I am using shapecss developed in laravel mix.
here is code is look like on main js entry file
shape.js
,directory is,
https://github.com/MicroDreamIT/shapecss-framework/blob/master/resources/assets/js/shape.js
'use strict';
import {Accordion} from "./component/Accordion";
import {Modal} from "./component/Modal";
import {getTab} from "./component/Tab";
import {Nav} from "./component/Nav";
import {Circle} from "./component/shapes/Circle";
import {Parallelogram} from "./component/shapes/Parallelogram";
import {Rectangle} from "./component/shapes/Rectangle";
import {Square} from "./component/shapes/Square";
window.onload = function () {
new Accordion();
new Modal();
getTab();
new Nav();
new Circle();
new Parallelogram();
new Rectangle();
new Square();
}
Accordion class is look like,
export class Accordion{
constructor(){
this.accordionDivs = document.getElementsByClassName('accordion');
if(this.accordionDivs)
this.processAccordions();
}
processAccordions() {
...
}
The text was updated successfully, but these errors were encountered: