mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
83 lines
2.0 KiB
JavaScript
83 lines
2.0 KiB
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,
|
|
}),
|
|
],
|
|
},
|
|
pwa: {
|
|
name: 'PPTist',
|
|
themeColor: '#d14424',
|
|
iconPaths: {
|
|
faviconSVG: null,
|
|
favicon32: 'icons/favicon-32x32.png',
|
|
favicon16: 'icons/favicon-16x16.png',
|
|
appleTouchIcon: 'icons/apple-touch-icon-152x152.png',
|
|
maskIcon: null,
|
|
msTileImage: null,
|
|
},
|
|
manifestOptions: {
|
|
name: 'PPTist',
|
|
short_name: 'PPTist',
|
|
theme_color: '#d14424',
|
|
icons: [{
|
|
src: 'icons/android-chrome-192x192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png'
|
|
}, {
|
|
src: 'icons/android-chrome-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png'
|
|
}, {
|
|
src: 'icons/android-chrome-maskable-192x192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png',
|
|
purpose: 'maskable'
|
|
}, {
|
|
src: 'icons/android-chrome-maskable-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'maskable'
|
|
}],
|
|
file_handlers: [
|
|
{
|
|
action: '/',
|
|
accept: {
|
|
'application/vnd.pptist': ['.pptist'],
|
|
}
|
|
}
|
|
],
|
|
start_url: '.',
|
|
display: 'standalone',
|
|
background_color: '#000000',
|
|
},
|
|
},
|
|
} |