Skip to content

Commit d24c344

Browse files
committed
vue config to exatrct css
1 parent 1c8d311 commit d24c344

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vue.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
const isProduction = process.env.NODE_ENV === 'production';
2+
13
module.exports = {
2-
baseUrl: process.env.NODE_ENV === 'production' ? '/vue-swipe-actions/' : '/',
4+
baseUrl: isProduction ? '/vue-swipe-actions/' : '/',
35
css: {
4-
extract: false
6+
extract: isProduction
57
}
68
};

0 commit comments

Comments
 (0)