2016-09-09 17:02:42 +08:00
|
|
|
var webpack = require("../../");
|
2013-01-31 10:25:20 +08:00
|
|
|
module.exports = {
|
2017-12-14 17:09:09 +08:00
|
|
|
// mode: "development" || "production",
|
2016-10-26 05:03:59 +08:00
|
|
|
plugins: [
|
|
|
|
new webpack.LoaderOptionsPlugin({
|
|
|
|
options: {
|
|
|
|
worker: {
|
|
|
|
output: {
|
|
|
|
filename: "hash.worker.js",
|
|
|
|
chunkFilename: "[id].hash.worker.js"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2017-12-14 17:09:09 +08:00
|
|
|
],
|
|
|
|
optimization: {
|
|
|
|
occurrenceOrder: true // To keep filename consistent between different modes (for example building only)
|
|
|
|
}
|
2017-01-11 17:51:58 +08:00
|
|
|
};
|