Temporarily disable use of SourceMapDevToolPlugin wrapper as it might be possible to remove it shortly

This commit is contained in:
SteveSandersonMS
2016-10-11 19:04:17 +01:00
parent 1543595c01
commit f26068b62b
6 changed files with 7 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
var isDevBuild = process.argv.indexOf('--env.prod') < 0;
var path = require('path');
var webpack = require('webpack');
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
var nodeExternals = require('webpack-node-externals');
var merge = require('webpack-merge');
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
@@ -34,7 +33,7 @@ var clientBundleConfig = merge(sharedConfig, {
})
].concat(isDevBuild ? [
// Plugins that apply in development builds only
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
new webpack.SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
] : [
// Plugins that apply in production builds only
new webpack.optimize.OccurenceOrderPlugin(),