Added file copy to dlcpacks and assets, added option to watch for file changes (npm run run)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const path = require('path');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
@@ -24,6 +25,12 @@ module.exports = {
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new CopyPlugin([
|
||||
{ from: 'dlcpacks/', to: '../source_dlcpacks/', force: true },
|
||||
{ from: 'assets/**/*', to: '../client_packages/' }
|
||||
])
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js', '.json']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user