|
|
@ -1,11 +1,9 @@ |
|
|
|
|
|
|
|
|
const BundleTracker = require('webpack-bundle-tracker') |
|
|
const BundleTracker = require('webpack-bundle-tracker') |
|
|
|
|
|
|
|
|
module.exports = { |
|
|
module.exports = { |
|
|
publicPath: 'http://localhost:8080/', |
|
|
publicPath: 'http://localhost:8080/', |
|
|
outputDir: './dist/', |
|
|
outputDir: './dist/', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chainWebpack: config => { |
|
|
chainWebpack: config => { |
|
|
|
|
|
|
|
|
config.optimization |
|
|
config.optimization |
|
|
@ -34,5 +32,10 @@ module.exports = { |
|
|
.add('./src/hellow/main.js') |
|
|
.add('./src/hellow/main.js') |
|
|
.end() |
|
|
.end() |
|
|
|
|
|
|
|
|
|
|
|
// then add your own
|
|
|
|
|
|
config.entry('theme') |
|
|
|
|
|
.add('./src/theme/main.js') |
|
|
|
|
|
.end() |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|