1 | // see http://vuejs-templates.github.io/webpack for documentation.
|
2 | var path = require('path')
|
3 |
|
4 | module.exports = {
|
5 | build: {
|
6 | env: require('./prod.env'),
|
7 | index: path.resolve(__dirname, '../site/index.html'),
|
8 | assetsRoot: path.resolve(__dirname, '../site'),
|
9 | assetsSubDirectory: 'static',
|
10 | assetsPublicPath: '/',
|
11 | productionSourceMap: true,
|
12 | // Gzip off by default as many popular static hosts such as
|
13 | // Surge or Netlify already gzip all static assets for you.
|
14 | // Before setting to `true`, make sure to:
|
15 | // npm install --save-dev compression-webpack-plugin
|
16 | productionGzip: false,
|
17 | productionGzipExtensions: ['js', 'css']
|
18 | },
|
19 | dev: {
|
20 | env: require('./dev.env'),
|
21 | port: 8080,
|
22 | assetsSubDirectory: 'static',
|
23 | assetsPublicPath: '/',
|
24 | proxyTable: {},
|
25 | // CSS Sourcemaps off by default because relative paths are "buggy"
|
26 | // with this option, according to the CSS-Loader README
|
27 | // (https://github.com/webpack/css-loader#sourcemaps)
|
28 | // In our experience, they generally work as expected,
|
29 | // just be aware of this issue when enabling this option.
|
30 | cssSourceMap: false
|
31 | }
|
32 | }
|