-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
23 lines (23 loc) · 985 Bytes
/
Copy pathvue.config.js
File metadata and controls
23 lines (23 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
devServer: {
// set this true to test facebook sdk or something else that requires https enabled in localhost server
https: false,
},
transpileDependencies: true,
// https://cli.vuejs.org/config/#lintonsave
lintOnSave: 'warning',
// use this option for production linking
// publicPath: process.env.NODE_ENV === 'production' ? '/vue/demo/4.0/' : '/',
publicPath: '/',
productionSourceMap: process.env.NODE_ENV === 'production' ? false : true,
...(process.env.NODE_ENV !== 'production' && { css: { sourceMap: true } }),
configureWebpack: {
//Necessary to run npm link https://webpack.js.org/configuration/resolve/#resolve-symlinks
resolve: {
symlinks: false,
},
// if environment is production, do not create source-maps (they will be created in experimental env)
...(process.env.NODE_ENV !== 'production' && { devtool: 'source-map' }),
},
})