Skip to content

Commit 97838e0

Browse files
authored
Merge pull request #1532 from shockey/ft/sourcemaps
Sourcemaps
2 parents d4d53e0 + fc9a309 commit 97838e0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ COPY nginx.conf /etc/nginx/
1010
# copy swagger files to the `/js` folder
1111
COPY ./index.html /usr/share/nginx/html/
1212
ADD ./dist/*.js /usr/share/nginx/html/dist/
13+
ADD ./dist/*.map /usr/share/nginx/html/dist/
1314
ADD ./dist/*.css /usr/share/nginx/html/dist/
1415
ADD ./docker-run.sh /usr/share/nginx/
1516

make-webpack-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = function(options) {
159159
return [autoprefixer]
160160
},
161161

162-
devtool: specialOptions.sourcemaps ? 'cheap-module-source-map' : null,
162+
devtool: specialOptions.sourcemaps ? 'nosource-source-map' : null,
163163

164164
}, options)
165165

webpack-hot-dev-server.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = require("./make-webpack-config.js")({
3838
chunkFilename: "[id].js"
3939
},
4040

41-
devtool: "eval",
41+
devtool: "eval-source-maps",
4242
devServer: {
4343
port: 3200,
4444
path: path.join(__dirname, "dev-helpers"),

0 commit comments

Comments
 (0)