File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ var path = require('path');
3
3
var webpack = require ( 'webpack' ) ;
4
4
var AureliaWebpackPlugin = require ( 'aurelia-webpack-plugin' ) ;
5
5
6
+ var bundleOutputDir = './wwwroot/dist' ;
6
7
module . exports = {
7
8
resolve : { extensions : [ '.js' , '.ts' ] } ,
8
- devtool : isDevBuild ? 'inline-source-map' : null ,
9
9
entry : { 'app' : 'aurelia-bootstrapper-webpack' } , // Note: The aurelia-webpack-plugin will add your app's modules to this bundle automatically
10
10
output : {
11
- path : path . resolve ( './wwwroot/dist' ) ,
11
+ path : path . resolve ( bundleOutputDir ) ,
12
12
publicPath : '/dist' ,
13
13
filename : '[name].js'
14
14
} ,
@@ -30,7 +30,13 @@ module.exports = {
30
30
src : path . resolve ( './ClientApp' ) ,
31
31
baseUrl : '/'
32
32
} )
33
- ] . concat ( isDevBuild ? [ ] : [
33
+ ] . concat ( isDevBuild ? [
34
+ // Plugins that apply in development builds only
35
+ new webpack . SourceMapDevToolPlugin ( {
36
+ filename : '[file].map' , // Remove this line if you prefer inline source maps
37
+ moduleFilenameTemplate : path . relative ( bundleOutputDir , '[resourcePath]' ) // Point sourcemap entries to the original file locations on disk
38
+ } )
39
+ ] : [
34
40
// Plugins that apply in production builds only
35
41
new webpack . optimize . UglifyJsPlugin ( )
36
42
] )
You can’t perform that action at this time.
0 commit comments