You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
745 B
JavaScript

const path = require('path')
const name = 'Vue Typescript Admin'
module.exports = {
outputDir: "../admin",
publicPath: process.env.NODE_ENV === 'production' ? '/admin/' : '/', // TODO: Remember to change this to fit your need
lintOnSave: process.env.NODE_ENV === 'development',
pwa: {
name: name
},
pluginOptions: {
'style-resources-loader': {
preProcessor: 'scss',
patterns: [
path.resolve(__dirname, 'src/styles/_variables.scss'),
path.resolve(__dirname, 'src/styles/_mixins.scss')
]
}
},
chainWebpack(config) {
// Provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
config.set('name', name)
}
}