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
f4cb5952
Commit
f4cb5952
authored
8 years ago
by
Nazim Hajidin
Committed by
Ville Immonen
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update css loader (#1057)
* Update css-loader to 0.26.0 * Update the production webpack config
parent
1668fb19
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.prod.js
+1
-9
packages/react-scripts/config/webpack.config.prod.js
packages/react-scripts/package.json
+1
-1
packages/react-scripts/package.json
with
2 additions
and
10 deletions
+2
-10
packages/react-scripts/config/webpack.config.prod.js
+
1
-
9
View file @
f4cb5952
...
@@ -142,15 +142,7 @@ module.exports = {
...
@@ -142,15 +142,7 @@ module.exports = {
// in the main CSS file.
// in the main CSS file.
{
{
test
:
/
\.
css$/
,
test
:
/
\.
css$/
,
// "?-autoprefixer" disables autoprefixer in css-loader itself:
loader
:
ExtractTextPlugin
.
extract
(
'
style
'
,
'
css?importLoaders=1!postcss
'
)
// https://github.com/webpack/css-loader/issues/281
// 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?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.
packages/react-scripts/package.json
+
1
-
1
View file @
f4cb5952
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"chalk"
:
"1.1.3"
,
"chalk"
:
"1.1.3"
,
"connect-history-api-fallback"
:
"1.3.0"
,
"connect-history-api-fallback"
:
"1.3.0"
,
"cross-spawn"
:
"4.0.2"
,
"cross-spawn"
:
"4.0.2"
,
"css-loader"
:
"0.2
5
.0"
,
"css-loader"
:
"0.2
6
.0"
,
"detect-port"
:
"1.0.1"
,
"detect-port"
:
"1.0.1"
,
"dotenv"
:
"2.0.0"
,
"dotenv"
:
"2.0.0"
,
"eslint"
:
"3.8.1"
,
"eslint"
:
"3.8.1"
,
...
...
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