BookStack/webpack.config.js

20 lines
415 B
JavaScript
Raw Normal View History

2018-03-12 00:16:30 +08:00
const path = require('path');
const dev = process.env.NODE_ENV !== 'production';
const config = {
target: 'web',
mode: dev? 'development' : 'production',
2018-03-12 00:16:30 +08:00
entry: {
2019-09-07 06:36:16 +08:00
app: './resources/js/index.js',
2018-03-12 00:16:30 +08:00
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'public/dist')
},
};
if (dev) {
config['devtool'] = 'inline-source-map';
}
module.exports = config;