Skip to content
GitLab
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
2cff34cd
Commit
2cff34cd
authored
8 years ago
by
Dan Abramov
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Clarify why we only need css?-autoprefixer in development
Fixes
#377
parent
c5cdbd55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/webpack.config.prod.js
+6
-1
config/webpack.config.prod.js
with
6 additions
and
1 deletion
+6
-1
config/webpack.config.prod.js
+
6
-
1
View file @
2cff34cd
...
...
@@ -116,7 +116,12 @@ module.exports = {
include
:
[
paths
.
appSrc
,
paths
.
appNodeModules
],
// "?-autoprefixer" disables autoprefixer in css-loader itself:
// https://github.com/webpack/css-loader/issues/281
// We already have it thanks to postcss.
// We already have it thanks to postcss. We only pass this flag in
// production because "css" loader only enables autoprefixer-powered
// removal of unnecessary prefixes when Uglify plugin is enabled.
// Webpack 1.x uses Uglify plugin as a signal to minify *all* the assets
// including CSS. This is confusing and will be removed in Webpack 2:
// https://github.com/webpack/webpack/issues/283
loader
:
ExtractTextPlugin
.
extract
(
'
style
'
,
'
css?-autoprefixer!postcss
'
)
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
},
...
...
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