2021-04-22 14:51:04 +02:00
|
|
|
// vue.config.js
|
|
|
|
module.exports = {
|
2021-05-15 11:30:44 +02:00
|
|
|
publicPath: process.env.BUILD_TARGET == 'app' ? '/' : '/rummy-timer/',
|
|
|
|
outputDir: process.env.BUILD_TARGET == 'app' ? 'app': 'dist',
|
2021-04-22 14:51:04 +02:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
// by default the `sass` option will apply to both syntaxes
|
|
|
|
// because `scss` syntax is also processed by sass-loader underlyingly
|
|
|
|
// but when configuring the `prependData` option
|
|
|
|
// `scss` syntax requires an semicolon at the end of a statement, while `sass` syntax requires none
|
|
|
|
// in that case, we can target the `scss` syntax separately using the `scss` option
|
|
|
|
scss: {
|
2021-05-01 10:29:28 +02:00
|
|
|
additionalData: `@import "~@/scss/includes.scss";`
|
2021-04-22 14:51:04 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|