mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Temporarily disable use of SourceMapDevToolPlugin wrapper as it might be possible to remove it shortly
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
var isDevBuild = process.argv.indexOf('--env.prod') < 0;
|
var isDevBuild = process.argv.indexOf('--env.prod') < 0;
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
|
|
||||||
var nodeExternals = require('webpack-node-externals');
|
var nodeExternals = require('webpack-node-externals');
|
||||||
var merge = require('webpack-merge');
|
var merge = require('webpack-merge');
|
||||||
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
|
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
|
||||||
@@ -34,7 +33,7 @@ var clientBundleConfig = merge(sharedConfig, {
|
|||||||
})
|
})
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// 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
|
// Plugins that apply in production builds only
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
new webpack.optimize.OccurenceOrderPlugin(),
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ var isDevBuild = process.argv.indexOf('--env.prod') < 0;
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: { 'main': './ClientApp/boot.ts' },
|
entry: { 'main': './ClientApp/boot.ts' },
|
||||||
@@ -27,7 +26,7 @@ module.exports = {
|
|||||||
})
|
})
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// 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
|
// Plugins that apply in production builds only
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
new webpack.optimize.OccurenceOrderPlugin(),
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ var isDevBuild = process.argv.indexOf('--env.prod') < 0;
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
|
|
||||||
var nodeExternals = require('webpack-node-externals');
|
var nodeExternals = require('webpack-node-externals');
|
||||||
var merge = require('webpack-merge');
|
var merge = require('webpack-merge');
|
||||||
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
|
var allFilenamesExceptJavaScript = /\.(?!js(\?|$))([^.]+(\?|$))/;
|
||||||
@@ -40,7 +39,7 @@ var clientBundleConfig = merge(sharedConfig(), {
|
|||||||
})
|
})
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// 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
|
// Plugins that apply in production builds only
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
new webpack.optimize.OccurenceOrderPlugin(),
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ var isDevBuild = process.argv.indexOf('--env.prod') < 0;
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
devtool: isDevBuild ? 'inline-source-map' : null,
|
devtool: isDevBuild ? 'inline-source-map' : null,
|
||||||
@@ -28,7 +27,7 @@ module.exports = {
|
|||||||
})
|
})
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// 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
|
// Plugins that apply in production builds only
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
new webpack.optimize.OccurenceOrderPlugin(),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
|
var webpack = require('webpack');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
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 './'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-aspnetcore-spa",
|
"name": "generator-aspnetcore-spa",
|
||||||
"version": "0.3.5",
|
"version": "0.3.6",
|
||||||
"description": "Single-Page App templates for ASP.NET Core",
|
"description": "Single-Page App templates for ASP.NET Core",
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user