A Demo project for MSFT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.1 KiB

const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const SOURCE_ROOT = __dirname + '/src/main/webpack';
module.exports = env => {
const writeToDisk = env && Boolean(env.writeToDisk);
return merge(common, {
mode: 'development',
performance: {
hints: 'warning',
maxAssetSize: 1048576,
maxEntrypointSize: 1048576
},
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, SOURCE_ROOT + '/static/index.html')
})
],
devServer: {
proxy: [{
context: ['/content', '/etc.clientlibs'],
target: 'http://localhost:4502',
}],
client: {
overlay: {
errors: true,
warnings: false,
},
},
watchFiles: ['src/**/*'],
hot: false,
devMiddleware: {
writeToDisk: writeToDisk
}
}
});
}