Could you help me to understand why Ionic 2 doesn’t generate scss source maps.
After “ionic serve” I’m navigating to www/build folder, there is main.css.map but it contains null instead of generated sourcemaps, how to fix it? Anyone faced this problem?
4 Likes
I’m having the same issue. the content of main.css.map is literally “null”.
It seems like the task lint
never finishes but the process is stopped… I’m looking further into it as well.
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.2.5
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.2
Xcode version: Not installed
Debug on Serve.
[ DEBUG! ] generateSourceMap set to true MEM: 126.0MB
[ DEBUG! ] sourceMapType set to source-map MEM: 126.0MB
…
[10:39:59] sass started ... MEM: 838.6MB
[ DEBUG! ] sass outFile: C:\dev\mobile.root\www\build\main.css MEM: 838.6MB
[ DEBUG! ] sass includePaths:
C:\dev\mobile.root\src,node_modules/ionic-angular/themes,node_modules/ionicons/dist/scss,node_modules/ionic-angular/fonts
MEM: 838.6MB
…
[ DEBUG! ] sass moduleDirectories: 222 MEM: 838.6MB
[ DEBUG! ] sass userSassVariableFiles: 1 MEM: 838.6MB
[ DEBUG! ] sass componentSassFiles: 182 MEM: 838.6MB
[ DEBUG! ] sass, start postcss/autoprefixer MEM: 839.5MB
[ DEBUG! ] sass: postcss/autoprefixer completed MEM: 841.0MB
[ DEBUG! ] sass start write output: C:\dev\mobile.root\www\build\main.css MEM: 841.0MB
[ DEBUG! ] sass saved output: C:\dev\mobile.root\www\build\main.css MEM: 837.4MB
[ DEBUG! ] sass start write css map: C:\dev\mobile.root\www\build\main.css.map MEM: 837.4MB
[10:40:00] sass finished in 964 ms MEM: 837.4MB
[10:40:00] postprocess started ... MEM: 837.4MB
[10:40:00] postprocess finished in 1 ms MEM: 837.5MB
[10:40:00] lint started ... MEM: 837.5MB
[ DEBUG! ] worker created, taskModule: lint, pid: 17068 MEM: 837.7MB
[ DEBUG! ] sass saved css map: C:\dev\mobile.root\www\build\main.css.map MEM: 837.7MB
…
[10:40:02] dev server running: http://localhost:8100/
[ DEBUG! ] worker exited, taskModule: lint, pid: 17068 MEM: 838.1MB
I am having the same issue, not able to working it out