Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit f26068b

Browse files
Temporarily disable use of SourceMapDevToolPlugin wrapper as it might be possible to remove it shortly
1 parent 1543595 commit f26068b

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

templates/Angular2Spa/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var isDevBuild = process.argv.indexOf('--env.prod') < 0;
22
var path = require('path');
33
var webpack = require('webpack');
4-
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
54
var nodeExternals = require('webpack-node-externals');
65
var merge = require('webpack-merge');
76
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
@@ -34,7 +33,7 @@ var clientBundleConfig = merge(sharedConfig, {
3433
})
3534
].concat(isDevBuild ? [
3635
// Plugins that apply in development builds only
37-
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
36+
new webpack.SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
3837
] : [
3938
// Plugins that apply in production builds only
4039
new webpack.optimize.OccurenceOrderPlugin(),

templates/KnockoutSpa/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var isDevBuild = process.argv.indexOf('--env.prod') < 0;
22
var path = require('path');
33
var webpack = require('webpack');
44
var ExtractTextPlugin = require('extract-text-webpack-plugin');
5-
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
65

76
module.exports = {
87
entry: { 'main': './ClientApp/boot.ts' },
@@ -27,7 +26,7 @@ module.exports = {
2726
})
2827
].concat(isDevBuild ? [
2928
// Plugins that apply in development builds only
30-
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
29+
new webpack.SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
3130
] : [
3231
// Plugins that apply in production builds only
3332
new webpack.optimize.OccurenceOrderPlugin(),

templates/ReactReduxSpa/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var isDevBuild = process.argv.indexOf('--env.prod') < 0;
22
var path = require('path');
33
var webpack = require('webpack');
44
var ExtractTextPlugin = require('extract-text-webpack-plugin');
5-
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
65
var nodeExternals = require('webpack-node-externals');
76
var merge = require('webpack-merge');
87
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
@@ -40,7 +39,7 @@ var clientBundleConfig = merge(sharedConfig(), {
4039
})
4140
].concat(isDevBuild ? [
4241
// Plugins that apply in development builds only
43-
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
42+
new webpack.SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
4443
] : [
4544
// Plugins that apply in production builds only
4645
new webpack.optimize.OccurenceOrderPlugin(),

templates/ReactSpa/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var isDevBuild = process.argv.indexOf('--env.prod') < 0;
22
var path = require('path');
33
var webpack = require('webpack');
44
var ExtractTextPlugin = require('extract-text-webpack-plugin');
5-
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
65

76
module.exports = {
87
devtool: isDevBuild ? 'inline-source-map' : null,
@@ -28,7 +27,7 @@ module.exports = {
2827
})
2928
].concat(isDevBuild ? [
3029
// Plugins that apply in development builds only
31-
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
30+
new webpack.SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
3231
] : [
3332
// Plugins that apply in production builds only
3433
new webpack.optimize.OccurenceOrderPlugin(),
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
1+
var webpack = require('webpack');
22

33
module.exports = {
44
plugins: [
5-
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
5+
new webpack.SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
66
]
77
};

templates/package-builder/src/yeoman/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-aspnetcore-spa",
3-
"version": "0.3.5",
3+
"version": "0.3.6",
44
"description": "Single-Page App templates for ASP.NET Core",
55
"author": "Microsoft",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)