Skip to content

Error on npm run production on shapecss, #Laravel-mix #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ShahanurSharif opened this issue Jun 19, 2017 · 3 comments
Open

Error on npm run production on shapecss, #Laravel-mix #2

ShahanurSharif opened this issue Jun 19, 2017 · 3 comments

Comments

@ShahanurSharif
Copy link
Owner

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() {
...
}

@ShahanurSharif ShahanurSharif changed the title Error on npm run production on shapecss Error on npm run production on shapecss, #Laravel-mix Jun 19, 2017
@ShahanurSharif
Copy link
Owner Author

@cristijora

@cristijora
Copy link
Contributor

Is there more information? The line from above doesn't help too much + not very familiar with laravel mix

@ShahanurSharif
Copy link
Owner Author

@cristijora working for webpack.conf integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants