webpack/examples/web-worker/webpack.config.js

20 lines
418 B
JavaScript
Raw Normal View History

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