Ionic 2 does not generate scss source maps. "main.css.map" contains "null"

Could you help me understand why Ionic 2 does not generate scss source maps. After the "ion feed" I move to the www / build folder, there is main.css.map, but it contains null instead of the generated source layouts, how to fix it? Has anyone encountered this issue?

+6
source share
1 answer

You need to expand the sass.config.js file, by default the original mapping for sass is disabled.

Config / sass.config.js:

module.exports = { sourceMap: true, } 

package.json:

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

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

Greetings

+7
source

Source: https://habr.com/ru/post/1015374/


All Articles