Added file copy to dlcpacks and assets, added option to watch for file changes (npm run run)

This commit is contained in:
hydrant
2019-03-11 22:39:26 +01:00
parent 8ce3fd6f52
commit d872ffa32f
3 changed files with 111 additions and 0 deletions

View File

@@ -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']
}