mirror of https://github.com/interlegis/sapl.git
2 changed files with 32 additions and 1 deletions
@ -0,0 +1,30 @@ |
|||
const BundleTracker = require('webpack-bundle-tracker') |
|||
|
|||
module.exports = { |
|||
publicPath: 'http://localhost:8080/', |
|||
outputDir: './dist/', |
|||
|
|||
|
|||
chainWebpack: config => { |
|||
|
|||
config.optimization |
|||
.splitChunks(false) |
|||
|
|||
config |
|||
.plugin('BundleTracker') |
|||
.use(BundleTracker, [{ filename: './webpack-stats.json' }]) |
|||
|
|||
config.resolve.alias |
|||
.set('__STATIC__', 'static') |
|||
|
|||
config.devServer |
|||
.public('') |
|||
.host('localhost') |
|||
.port(8080) |
|||
.hotOnly(true) |
|||
.watchOptions({ poll: 1000 }) |
|||
.https(false) |
|||
.headers({ 'Access-Control-Allow-Origin': '\*' }) |
|||
|
|||
} |
|||
} |
|||
Loading…
Reference in new issue