externals
This commit is contained in:
@@ -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',
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user