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 want first to concat my old js files into one file and then import this new file to my main app.js.
I can't import each file separately since they have to use functions from each other and webpack isolates them and prevents it.
Webpack-concat-plugin creates file, but it can't be imported.
import './../index.pug';
import './../pages/main.pug';
import './../scss/style.scss';
import Sandwich from './components/sandwich';
import Accordion from './components/accordion';
import Question from './components/question';
//LEGACY
import 'imports-loader?define=>false!./legacy.bundle.js';
//-LEGACY
//NEW
new Sandwich('.js-sandwich', '.js-sandwich-menu').init();
new Accordion().init();
new Question().init();
The text was updated successfully, but these errors were encountered:
Hie!
I want first to concat my old js files into one file and then import this new file to my main app.js.
I can't import each file separately since they have to use functions from each other and webpack isolates them and prevents it.
Webpack-concat-plugin creates file, but it can't be imported.
My config:
plugins:
app.js:
The text was updated successfully, but these errors were encountered: