2020-07-24 02:29:53 +00:00
|
|
|
const webpack = require("webpack");
|
|
|
|
|
2020-01-23 00:18:07 +00:00
|
|
|
module.exports = {
|
|
|
|
configureWebpack: {
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.coffee$/,
|
|
|
|
loader: 'coffee-loader',
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-07-24 02:29:53 +00:00
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
__VUE_OPTIONS_API__: false,
|
|
|
|
__VUE_PROD_DEVTOOLS__: true
|
|
|
|
})
|
|
|
|
],
|
2020-01-23 00:18:07 +00:00
|
|
|
devServer: {
|
|
|
|
compress: true,
|
|
|
|
disableHostCheck: true
|
|
|
|
}
|
|
|
|
},
|
2020-02-08 13:06:57 +00:00
|
|
|
productionSourceMap: false,
|
|
|
|
pwa: {
|
|
|
|
workboxPluginMode: "InjectManifest",
|
|
|
|
workboxOptions: {
|
|
|
|
swSrc: __dirname + "/public/service-worker.js"
|
|
|
|
}
|
|
|
|
}
|
2020-01-23 00:18:07 +00:00
|
|
|
};
|