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
59acae6a
Commit
59acae6a
authored
8 years ago
by
Nathan Hunzaker
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
PostCSS should run on @import statements. (#929)
parent
d7ecd928
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.dev.js
+1
-1
packages/react-scripts/config/webpack.config.dev.js
packages/react-scripts/config/webpack.config.prod.js
+1
-1
packages/react-scripts/config/webpack.config.prod.js
with
2 additions
and
2 deletions
+2
-2
packages/react-scripts/config/webpack.config.dev.js
+
1
-
1
View file @
59acae6a
...
@@ -137,7 +137,7 @@ module.exports = {
...
@@ -137,7 +137,7 @@ module.exports = {
// in development "style" loader enables hot editing of CSS.
// in development "style" loader enables hot editing of CSS.
{
{
test
:
/
\.
css$/
,
test
:
/
\.
css$/
,
loader
:
'
style!css!postcss
'
loader
:
'
style!css
?importLoaders=1
!postcss
'
},
},
// JSON is not enabled by default in Webpack but both Node and Browserify
// JSON is not enabled by default in Webpack but both Node and Browserify
// allow it implicitly so we also enable it.
// allow it implicitly so we also enable it.
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.prod.js
+
1
-
1
View file @
59acae6a
...
@@ -150,7 +150,7 @@ module.exports = {
...
@@ -150,7 +150,7 @@ module.exports = {
// Webpack 1.x uses Uglify plugin as a signal to minify *all* the assets
// 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:
// including CSS. This is confusing and will be removed in Webpack 2:
// https://github.com/webpack/webpack/issues/283
// https://github.com/webpack/webpack/issues/283
loader
:
ExtractTextPlugin
.
extract
(
'
style
'
,
'
css?-autoprefixer!postcss
'
)
loader
:
ExtractTextPlugin
.
extract
(
'
style
'
,
'
css?
importLoaders=1&
-autoprefixer!postcss
'
)
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
},
},
// JSON is not enabled by default in Webpack but both Node and Browserify
// JSON is not enabled by default in Webpack but both Node and Browserify
...
...
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