Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Sourcemaps in new project structure

$
0
0

In recent versions of the conference app and ionic 2 templates, the app folder containing the source code has been pulled up above the www folder where the build folder is and the transpiled code is written to in the app.bundle.js file.

Before that when the app folder and the build were both under the www folder I was able to get sourcemaps working.
I only needed to add devtool: 'source-map', to the webpack.config.js file.

But now when I try to debug the code, I always find myself looking at the code that has been transpiled to es5, not the es6 source.

It seems to me that since the app folder with the es6 source is now above the www folder, the sourcemaps can't find the source files anymore. Is there something I need to configure in the webpack.config.js file to get sourcemaps to work now?


Viewing all articles
Browse latest Browse all 228595

Trending Articles