Browse Source

使用vue-cli默认source-map

tags/v2.0
RuoYi 5 years ago
parent
commit
1114e5aea7
  1. 2
      ruoyi-ui/src/assets/styles/element-variables.scss
  2. 6
      ruoyi-ui/vue.config.js

2
ruoyi-ui/src/assets/styles/element-variables.scss

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
/* theme color */
$--color-primary: #1890ff;
$--color-success: #13ce66;
$--color-warning: #FFBA00;
$--color-warning: #ffba00;
$--color-danger: #ff4949;
// $--color-info: #1E1E1E;

6
ruoyi-ui/vue.config.js

@ -83,12 +83,6 @@ module.exports = { @@ -83,12 +83,6 @@ module.exports = {
.end()
config
// https://webpack.js.org/configuration/devtool/#development
.when(process.env.NODE_ENV === 'development',
config => config.devtool('cheap-source-map')
)
config
.when(process.env.NODE_ENV !== 'development',
config => {
config

Loading…
Cancel
Save