I have been able to compile "es6 standard" js files into native js using one entry point, I've also been able to use multiple entries to compile multiple files. Example:
webpack.config.js
module.exports = {
entry: {
front: "./static/src/js/Front.js",
account: "./static/src/js/Account.js"
},
output: {
path: "./static/dist",
filename: "[name]-bundle.js"
}
};
I have understood the concept of using modules/plugins to compile other files, with a little bit more...
modules: {
loaders: [
{ tests: '/\.(css|scss)$/', loader: 'css-loader|style-loader'}
]
}
These solutions compile my files into JavaScript only, including my styles (scss, sass, css).
I am looking for a solution where I will have two (or multiple) different entry files, that each will produce its own output file with its own file-type (not just .js). I would not mind having multiple config modules. Thanks...