Use custom sourcemap file names

This commit is contained in:
Joe Haddad
2017-04-24 21:51:59 -04:00
parent 5bb502a28f
commit 927c539bc5
2 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
@@ -72,6 +73,9 @@ module.exports = {
filename: 'static/js/bundle.js',
// This is the URL that app is served from. We use "/" in development.
publicPath: publicPath,
// Point sourcemap entries to original disk location
devtoolModuleFilenameTemplate: info =>
path.relative(paths.appSrc, info.absoluteResourcePath),
},
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.