ADDED support for local webpack devserver development
This commit is contained in:
parent
7be7e9fd67
commit
ecc3b17aca
4 changed files with 426 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
const path = require("path");
|
||||
const common = require("./webpack.common");
|
||||
const merge = require("webpack-merge");
|
||||
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: "development",
|
||||
|
@ -21,4 +22,18 @@ module.exports = merge(common, {
|
|||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
appLoader: '<script>window.dashboardVersion="0.0.0";</script><script src="scripts/apploader.js?v=0.0.0" defer></script></body>',
|
||||
filename: 'index.html',
|
||||
template: 'index.html'
|
||||
})
|
||||
],
|
||||
devServer: {
|
||||
proxy: {
|
||||
"!/**/*.html" : "http://localhost:8096",
|
||||
"!/**/*.css" : "http://localhost:8086",
|
||||
"!/**/*.js" : "http://localhost:8086"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue