net/rfront/webpack.config.js

22 lines
446 B
JavaScript
Raw Normal View History

2024-04-29 11:50:23 -04:00
const CopyWebpackPlugin = require('copy-webpack-plugin');
2024-04-29 11:52:13 -04:00
const config = require('./config');
2024-04-29 11:50:23 -04:00
module.exports = {
mode: config.debug ? 'development' : 'production',
2024-05-03 19:28:50 -04:00
entry: `${__dirname}/src/index.js`,
2024-04-29 11:50:23 -04:00
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
],
},
output: {
filename: 'index.js',
path: `${__dirname}/public`,
publicPath: '/',
2024-04-29 11:52:13 -04:00
}
2024-04-29 11:50:23 -04:00
};