Always print pathInfo in webpack build

That way, you can run 
`JS_BUILD_NO_UGLIFY=1 npm run webpack-production`
and it will still output a comment with the path to each
Thing it defines/requires so you can more
easily tell what you are looking at.
But when it does uglify, it will still strip out 
those comments

Test plan:
run: JS_BUILD_NO_UGLIFY=1 npm run webpack-production
The output it puts out should have comments about
which module it is defining

Change-Id: Ia6421f988848c1f6cc167bfe07ec0534ffc0ac79
Reviewed-on: https://gerrit.instructure.com/104204
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
Ryan Shaw 2017-03-06 19:30:48 -07:00
parent 4ec005d7fc
commit 2c81a633ed
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ module.exports = {
path: path.join(__dirname, '../public', webpackPublicPath),
// Add /* filename */ comments to generated require()s in the output.
pathinfo: process.env.NODE_ENV !== 'production',
pathinfo: true,
filename: '[name].bundle-[chunkhash:10].js',
chunkFilename: '[name].chunk-[chunkhash:10].js',