mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
修改postcss配置
This commit is contained in:
1 parent
4f3d5e0240
commit
f13aebd720
4 files changed
+20
-11
No files matched your search
@@ -40,7 +40,14 @@ module.exports = function creatRollupConfig(projectPath) {
|
||||
exclude: ['node_modules/**', 'packages/*/src/**/*.scss', 'packages/*/src/**/*.svg'],
|
||||
}),
|
||||
postcss({
|
||||
plugins: [autoprefixer, cssnano],
|
||||
plugins: [
|
||||
autoprefixer({
|
||||
browsers: ['last 2 versions'],
|
||||
}),
|
||||
cssnano({
|
||||
preset: 'default',
|
||||
}),
|
||||
],
|
||||
sourceMap: isProd ? false : true,
|
||||
extract: isProd
|
||||
? path.join(projectPath, `dist/${name}.css`)
|
||||
|
||||
Reference in new issue
Block a user