canvas-lms/frontend_build
Graham Ballantyne 5c9ae8f6aa Generate JavaScript sourcemaps in production
Resolves instructure/canvas-lms#1101

In production, generate separate sourcemap files so that bundles appear
split into their original, un-obfuscated source files in browser
devtools.

Note: `source-map` generation on large projects can cause node/v8 to
exhaust its memory allocation (see webpack/webpack#1914,
webpack/webpack#2157). This is the reason for the change to
package.json. In the future (e.g. when Canvas uses Node 8, or the
NODE_OPTIONS feature is back-ported to Node 6, this can go back to
a traditional npm script that doesn't directly invoke `node`.

Test Plan:
- Remove the `public/dist/webpack-*` directories.
- Run `JS_BUILD_NO_UGLIFY=true npm run webpack-production`. No sourcemap
  files should be present in  `public/dist/webpack-production`.
- Run `npm run webpack-production`. Sourcemap files should be present in
  `public/dist/webpack-production`

Change-Id: Iebc85b5f52a6c7c25fdc5c2326cf9436dd42c2dd
Reviewed-on: https://gerrit.instructure.com/128070
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
2017-10-02 18:43:52 +00:00
..
webpackHooks add webpack hooks with osx notifications 2016-12-05 21:54:06 +00:00
BundleExtensionsPlugin.js da licença part 51 2017-04-28 19:05:00 +00:00
CompiledReferencePlugin.js Make it so you can use js in app/coffescripts 2017-06-07 16:27:18 +00:00
SelinimumManifestPlugin.js da licença part 51 2017-04-28 19:05:00 +00:00
baseWebpackConfig.js Generate JavaScript sourcemaps in production 2017-10-02 18:43:52 +00:00
bundles.js da licença part 51 2017-04-28 19:05:00 +00:00
clientAppPlugin.js get jquery and jquery.cookie from npm, not vendor 2017-05-08 20:47:23 +00:00
emberHandlebars.js da licença part 51 2017-04-28 19:05:00 +00:00
handlebarsPartials.js da licença part 51 2017-04-28 19:05:00 +00:00
handlebars_helpers_loader.js da licença part 51 2017-04-28 19:05:00 +00:00
i18n.js da licença part 51 2017-04-28 19:05:00 +00:00
i18nLinerHandlebars.js da licença part 51 2017-04-28 19:05:00 +00:00
i18nPlugin.js da licença part 51 2017-04-28 19:05:00 +00:00
modulesToIncludeInVendorBundle.js rm jquery.ba-hashchange, modern browsers don’t need it 2017-05-16 14:38:18 +00:00
momentBundles.js re-add missing timezone locales 2017-08-23 21:01:06 +00:00
unextended.js da licença part 51 2017-04-28 19:05:00 +00:00
webpackHooks.js da licença part 51 2017-04-28 19:05:00 +00:00
webpackPublicPath.js da licença part 51 2017-04-28 19:05:00 +00:00
withExtensions.js da licença part 51 2017-04-28 19:05:00 +00:00