Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
f17914c3
Commit
f17914c3
authored
7 years ago
by
Ade Viankakrisna Fadlil
Browse files
Options
Download
Email Patches
Plain Diff
enable manifest plugin on dev
parent
43fbf0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.dev.js
+8
-0
packages/react-scripts/config/webpack.config.dev.js
with
8 additions
and
0 deletions
+8
-0
packages/react-scripts/config/webpack.config.dev.js
+
8
-
0
View file @
f17914c3
...
@@ -19,6 +19,7 @@ const eslintFormatter = require('react-dev-utils/eslintFormatter');
...
@@ -19,6 +19,7 @@ const eslintFormatter = require('react-dev-utils/eslintFormatter');
const
ModuleScopePlugin
=
require
(
'
react-dev-utils/ModuleScopePlugin
'
);
const
ModuleScopePlugin
=
require
(
'
react-dev-utils/ModuleScopePlugin
'
);
const
getClientEnvironment
=
require
(
'
./env
'
);
const
getClientEnvironment
=
require
(
'
./env
'
);
const
paths
=
require
(
'
./paths
'
);
const
paths
=
require
(
'
./paths
'
);
const
ManifestPlugin
=
require
(
'
webpack-manifest-plugin
'
);
// Webpack uses `publicPath` to determine where the app is being served from.
// Webpack uses `publicPath` to determine where the app is being served from.
// In development, we always serve from the root. This makes config easier.
// In development, we always serve from the root. This makes config easier.
...
@@ -338,6 +339,13 @@ module.exports = {
...
@@ -338,6 +339,13 @@ module.exports = {
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
// You can remove this if you don't use Moment.js:
new
webpack
.
IgnorePlugin
(
/^
\.\/
locale$/
,
/moment$/
),
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.
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
// Tell Webpack to provide empty mocks for them so importing them works.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets