mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
36 lines
802 B
JavaScript
36 lines
802 B
JavaScript
const StyleLintPlugin = require('stylelint-webpack-plugin')
|
|
|
|
module.exports = {
|
|
publicPath: './',
|
|
css: {
|
|
loaderOptions: {
|
|
sass: {
|
|
prependData: `
|
|
@import "~@/assets/styles/variable.scss";
|
|
@import "~@/assets/styles/mixin.scss";
|
|
`,
|
|
},
|
|
less: {
|
|
lessOptions: {
|
|
modifyVars: {
|
|
'primary-color': '#d14424',
|
|
'text-color': '#41464b',
|
|
'font-size-base': '13px',
|
|
'border-radius-base': '2px',
|
|
},
|
|
javascriptEnabled: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
configureWebpack: {
|
|
plugins: [
|
|
new StyleLintPlugin({
|
|
files: ['src/**/*.{vue,html,css,scss,sass,less}'],
|
|
failOnError: false,
|
|
cache: false,
|
|
fix: false,
|
|
}),
|
|
],
|
|
},
|
|
} |