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.
52 lines
1.1 KiB
52 lines
1.1 KiB
const webpack = require("webpack");
|
|
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|
module.exports = {
|
|
lintOnSave: false,
|
|
configureWebpack: {
|
|
// Set up all the aliases we use in our app.
|
|
resolve: {
|
|
alias: {
|
|
"chart.js": "chart.js/dist/Chart.js"
|
|
}
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
maxChunks: 6
|
|
})
|
|
],
|
|
optimization: {
|
|
minimizer: [
|
|
new UglifyJsPlugin({
|
|
uglifyOptions: {
|
|
output: {
|
|
comments: false
|
|
},
|
|
compress: {
|
|
drop_debugger: true,
|
|
drop_console: true
|
|
}
|
|
}
|
|
})
|
|
]
|
|
}
|
|
},
|
|
pwa: {
|
|
name: "Vue Black Dashboard",
|
|
themeColor: "#344675",
|
|
msTileColor: "#344675",
|
|
appleMobileWebAppCapable: "yes",
|
|
appleMobileWebAppStatusBarStyle: "#344675"
|
|
},
|
|
pluginOptions: {
|
|
i18n: {
|
|
locale: "en",
|
|
fallbackLocale: "en",
|
|
localeDir: "locales",
|
|
enableInSFC: false
|
|
}
|
|
},
|
|
css: {
|
|
// Enable CSS source maps.
|
|
sourceMap: process.env.NODE_ENV !== "production"
|
|
}
|
|
};
|
|
|