Answer the question
In order to leave comments, you need to log in
How to use webpack's extract plugin for JavaScript files?
There are lines in the polyfills.ts file:
// import js
import "ui-common/source/js/jquery.min.js";
import "ui-common/source/js/materialize.min.js";
// import css
import "ui-common/source/css/normalize.css";
new ExtractTextPlugin({
filename: 'css/style.[hash].css',
allChunks: true
})
{
test: /\.js$/,
include: [resolvePath(`${uiCommon}/source/js`)],
use: ['script-loader']
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question