Skip to content

Commit

Permalink
Merge pull request facebook#4014 from viankakrisna/enable-manifest-pl…
Browse files Browse the repository at this point in the history
…ugin-on-dev

enable manifest plugin on dev
  • Loading branch information
Jack Zhao authored May 31, 2018
2 parents 3fdb4fd + 3508c16 commit eba76bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
const getClientEnvironment = require('./env');
const paths = require('./paths');
const ManifestPlugin = require('webpack-manifest-plugin');

// Webpack uses `publicPath` to determine where the app is being served from.
// In development, we always serve from the root. This makes config easier.
Expand Down Expand Up @@ -376,6 +377,13 @@ module.exports = {
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// Generate a manifest file which contains a mapping of all asset filenames
// to their corresponding output file so that tools can pick it up without
// having to parse `index.html`.
new ManifestPlugin({
fileName: 'asset-manifest.json',
publicPath: publicPath,
}),
],

// Some libraries import Node modules but don't use them in the browser.
Expand Down

0 comments on commit eba76bf

Please sign in to comment.