mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 12:11:20 -08:00
添加sourcemap
This commit is contained in:
1 parent
03605262bd
commit
01e16b042c
18 files changed
+119
-49
No files matched your search
@@ -33,6 +33,7 @@ module.exports = function creatRollupConfig(projectPath) {
|
||||
: path.join(process.cwd(), `docs/uncompiled/${name}.js`),
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
sourcemap: isProd ? false : true,
|
||||
},
|
||||
plugins: [
|
||||
eslint({
|
||||
@@ -40,6 +41,7 @@ module.exports = function creatRollupConfig(projectPath) {
|
||||
}),
|
||||
postcss({
|
||||
plugins: [autoprefixer, cssnano],
|
||||
sourceMap: isProd ? false : true,
|
||||
extract: isProd
|
||||
? path.join(projectPath, `dist/${name}.css`)
|
||||
: path.join(process.cwd(), `docs/uncompiled/${name}.css`),
|
||||
|
||||
Reference in new issue
Block a user