Sistema de Apoio ao Processo Legislativo
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.
 
 
 
 
 

38 lines
768 B

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': '\*' })
config.entryPoints.delete('app')
// then add your own
config.entry('hellow')
.add('./src/hellow/main.js')
.end()
}
}