-
Notifications
You must be signed in to change notification settings - Fork 310
ionic_source_map_type eval fails in --prod #934
Comments
I'm seeing exactly the same on app-scripts 1.3.6 with source map type Dev builds work fine, but I can't build for production. |
same here --prod doesnt work with "config": { |
Getting exactly the same problem. Moreover, it seems that --prod flag does not disable source maps for PROD build - see #977 |
I have the same problem |
Work fine when I change ionic_source_map_type config value from "#inline-source-map" to "source-map" in package.json file |
As a workaround, you can restrict the custom ionic_source_map_type setting to dev builds by first defining a custom webpack config file, then adjsting the config with Minimal example (not tested)In package.json: "config": {
"ionic_webpack": "./src/config/webpack.config.js"
} In src/config/webpack.config.js (might need to create it): var config = require('@ionic/app-scripts/config/webpack.config.js');
module.exports = function () {
// by default mapped to IONIC_SOURCE_MAP_TYPE
config.dev.devtool = '#inline-source-map';
return config;
}; |
Same here. package.json (snippet) {
"scripts": {
"build:release": "ionic cordova build android --release --prod --generateSourceMap false"
},
"config": {
"ionic_purge_unused_fonts": false,
"ionic_source_map_type": "#inline-source-map"
},
} You see, I also defined the option Error:
|
Workaround:
And remove the inline-source-map global config. Or set |
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
ionic_source_map_type eval fails in --prod
What behavior are you expecting?
ionic_source_map_type eval should not fail in --prod
Steps to reproduce:
Which @ionic/app-scripts version are you using?
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The text was updated successfully, but these errors were encountered: