forked from SurveyLegend/hapi-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.cjs
31 lines (29 loc) · 1.03 KB
/
vue.config.cjs
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
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
devServer: {
port: 3001,
proxy: 'http://localhost:3000'
},
chainWebpack: (config) => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule.use('svg-url-loader').loader('svg-url-loader')
// Fix for Safari caching bug https://github.com/vuejs/vue-cli/issues/1132
if (process.env.NODE_ENV === 'development') {
config.output.filename('[name].[fullHash].js').end()
}
},
css: {
loaderOptions: {
scss: {
additionalData: `
@import "@/assets/scss/settings/_breakpoints.scss";
@import "@/assets/scss/settings/_layout.scss";
@import "@/assets/scss/settings/_typography.scss";
@import "@/assets/scss/utility/_functions.scss";
@import "@/assets/scss/utility/_mixins.scss";
`
}
}
}
}