2023-06-28 11:41:06 +08:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2023-07-12 11:56:31 +08:00
|
|
|
entry: {
|
2023-07-12 13:16:44 +08:00
|
|
|
shop: './static/js/shop.jsx'
|
2023-07-12 11:56:31 +08:00
|
|
|
},
|
2023-06-28 11:41:06 +08:00
|
|
|
output: {
|
2023-07-12 11:56:31 +08:00
|
|
|
path: path.resolve(__dirname, './static/js'),
|
|
|
|
filename: '[name].bundle.js'
|
2023-06-28 11:41:06 +08:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
2023-07-12 13:16:44 +08:00
|
|
|
test: /\.(js|jsx)$/,
|
2023-06-28 11:41:06 +08:00
|
|
|
exclude: /node_modules/,
|
|
|
|
use: 'babel-loader'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
devtool: false,
|
|
|
|
mode: "production"
|
|
|
|
};
|