make work
This commit is contained in:
@@ -19,15 +19,29 @@ module.exports = [{
|
||||
__dirname: false,
|
||||
Buffer: true,
|
||||
},
|
||||
|
||||
|
||||
resolve: {
|
||||
// Add `.ts` and `.tsx` as a resolvable extension.
|
||||
|
||||
extensions: [".ts", ".tsx", ".js"]
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /\.ts?$/, loader: "ts-loader" }
|
||||
]
|
||||
},
|
||||
|
||||
externals:{
|
||||
sqlite3: 'sqlite3',
|
||||
knex: "../plugins/node_modules/knex"
|
||||
},
|
||||
optimization: {
|
||||
minimize: false
|
||||
},
|
||||
entry: path.resolve(__dirname, '../../lib/FrontblockAdmin.js'),
|
||||
entry: path.resolve(__dirname, 'Main.ts'),
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../../dist'),
|
||||
filename: 'FrontblockAdmin.js',
|
||||
libraryTarget: 'commonjs',
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user