biobulkbende.org/webpack.config.js

26 lines
453 B
JavaScript
Raw Normal View History

2020-09-18 20:01:59 +00:00
const path = require('path');
module.exports = {
mode: "production",
entry: {
App: "./app/assets/js/App.js",
Vendor: "./app/assets/js/Vendor.js"
},
output: {
path: path.resolve(__dirname, "dist/scripts"),
filename: "[name].js"
},
module: {
rules: [
{
test: /\.(js)$/,
exclude: /node_modules/,
use: ['babel-loader']
}
]
},
resolve: {
extensions: ['*', '.js']
}
}