File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,10 @@ module.exports = {
3737var devBuild = ( typeof process . env [ "BUILDPACK_URL" ] ) === "undefined" ;
3838if ( devBuild ) {
3939 console . log ( "Webpack dev build for rails" ) ;
40- module . exports . devtool = "source-map" ;
40+ module . exports . devtool = "eval- source-map" ;
4141 module . exports . module . loaders . push (
4242 { test : require . resolve ( "react" ) , loader : "expose?React" }
4343 ) ;
44- module . exports . plugins = [
45- function ( ) {
46- this . plugin ( "emit" , function ( compilation , callback ) {
47- // CRITICAL: This must be a relative path from the railsJsAssetsDir (where gen file goes)
48- var asset = compilation . assets [ railsBundleMapFile ] ;
49- compilation . assets [ railsBundleMapRelativePath ] = asset ;
50- delete compilation . assets [ railsBundleMapFile ] ;
51- callback ( ) ;
52- } ) ;
53- }
54- ] ;
5544} else {
5645 console . log ( "Webpack production build for rails" ) ;
5746}
You can’t perform that action at this time.
0 commit comments