biobulkbende.org/webpack.config.js
2020-11-23 10:57:52 +01:00

26 lines
453 B
JavaScript

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"],
},
};