-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
63 lines (59 loc) · 2.16 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// const path = require('path')
// import Purgecss webpack plugin and glob-all
// const PurgecssPlugin = require('purgecss-webpack-plugin')
// const glob = require('glob-all')
const webpack = require('webpack')
const TerserPlugin = require('terser-webpack-plugin')
// const { DuplicatesPlugin } = require("inspectpack/plugin")
// const cssWhiteList = []
// const cssWhiteListPatterns = []
// const whitelistPatternsChildren = [/vch/, /^ql-/, /^toast/, /^tingle/]
module.exports = {
configureWebpack: {
plugins: [
/*
new DuplicatesPlugin({
// Emit compilation warning or error? (Default: `false`)
emitErrors: false,
// Handle all messages with handler function (`(report: string)`)
// Overrides `emitErrors` output.
emitHandler: undefined,
// Display full duplicates information? (Default: `false`)
verbose: false
}), */
// Remove unused CSS using purgecss. See https://github.com/FullHuman/purgecss
// for more information about purgecss.
// new PurgecssPlugin({
// paths: glob.sync([
// path.join(__dirname, './../public/index.html'),
// path.join(__dirname, './../**/*.vue'),
// path.join(__dirname, './../src/**/*.js')
// ]),
// whitelist: cssWhiteList,
// whitelistPatterns: cssWhiteListPatterns,
// whitelistPatternsChildren: whitelistPatternsChildren
// }),
new webpack.ProvidePlugin({
'window.Quill': 'quill/dist/quill.js'
})
],
performance: {
hints: false
},
optimization: {
minimizer: [new TerserPlugin({
cache: true,
parallel: true,
sourceMap: false,
terserOptions: {
output: {
comments: false
}
}
})]
}
},
assetsDir: 'static',
productionSourceMap: false,
outputDir: 'templates'
}