且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Ionic 2不会生成scss源图。 “main.css.map”包含“null”

更新时间:2023-09-18 10:09:58

你需要扩展你的sass.config.js文件,默认情况下为sass提供源映射被禁用。

You'll need to extend your sass.config.js file, by default source mapping for sass is disabled.

config / sass.config.js:

config/sass.config.js:

module.exports = {
  sourceMap: true,
}

package.json :

package.json:

"config": {
  "ionic_sass": "./config/sass.config.js",
},

https://github.com/GerritErpenstein/ionic2-custom-icons/blob/master/docs/CONFIGURATION.md

干杯,