mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 07:20:27 +01:00
feat: webpack 5 part 1
This commit is contained in:
25
webpack.installer.js
Normal file
25
webpack.installer.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// webpack config for webinstaller
|
||||
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
installer: './public/src/installer/install.js',
|
||||
},
|
||||
output: {
|
||||
filename: '[name].bundle.js',
|
||||
chunkFilename: '[name].bundle.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
publicPath: '/dist/',
|
||||
},
|
||||
resolve: {
|
||||
symlinks: false,
|
||||
modules: [
|
||||
'public/src',
|
||||
'node_modules',
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user