externals

This commit is contained in:
peter
2019-08-24 10:11:18 +02:00
parent 65400b2e2d
commit ce5081f700
8 changed files with 2346 additions and 6888 deletions
+24 -3
View File
@@ -1,12 +1,33 @@
const path = require('path');
module.exports = {
module.exports = [{
mode: 'production',
target: "web",
entry: path.resolve(__dirname, '../../dist/FrontblockLib.js'),
entry: path.resolve(__dirname, '../../lib/FrontblockLib.js'),
output: {
path: path.resolve(__dirname, '../../dist'),
filename: 'FrontblockLib.js',
}
}
},{
mode: 'production',
target: "node",
node: {
global: true,
process: true,
__filename: false,
__dirname: false,
Buffer: true,
},
externals:[
'knex'
],
optimization: {
minimize: false
},
entry: path.resolve(__dirname, '../../lib/FrontblockAdmin.js'),
output: {
path: path.resolve(__dirname, '../../dist'),
filename: 'FrontblockAdmin.js',
}
}]