Skip to content

Commit

Permalink
GH-1: Enabled source maps to be able to track injection issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
  • Loading branch information
kittaakos committed Mar 3, 2017
1 parent a158236 commit 9673bf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/webpack/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ module.exports = function (dirname) {
{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
loader: 'url-loader?limit=10000&mimetype=image/svg+xml'
},
{
test: /\.js$/,
enforce: 'pre',
loader: 'source-map-loader'
}
];
};
4 changes: 3 additions & 1 deletion config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ module.exports = function (dirname, config) {

resolve: {
extensions: ['.ts', '.js']
}
},

devtool: 'source-map'

};
const argv = minimist(process.argv.slice(2));
Expand Down

0 comments on commit 9673bf0

Please sign in to comment.