Sourcemaps are not generated in Angular1/Typescript/Webpack build #218
Comments
This seems to fix it. I added sourcemap to new webpack.optimize.UglifyJsPlugin(..., and ** devtool: 'source-map',** towebpack-dist.conf.js. Additions in bold: const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = {
}, |
Description
I am using a completely fresh install (as of today of node, yeoman and this generator).
I generated my project using the following options:
? Which JavaScript framework do you want? Angular 1
? Which module management do you want? Webpack with NPM
? Which JS preprocessor do you want? TypeScript
? Which CSS preprocessor do you want? Less
? Which Continuous Integration platform do you want?
? Do you want a sample app? TodoMVC
? Would you like a router? None
When I run gulp build no sourcemap files are generated. When I run gulp serve:dist, the browser (Chrome) does not show Typescript files, just the compressed Javascript files.
Config
Copy the content from
.yo-rc.json
:Node: v6.10.3, darwin 15.6.0
yeoman: 2.0.0
npm: 5.6.0
The text was updated successfully, but these errors were encountered: