Skip to content

Commit d428973

Browse files
committed
Fix "Order in extracted chunk undefined" error
- Use temp fix documented here: webpack-contrib/extract-text-webpack-plugin#166 (comment) - Above fix is included in webpack 2.0 and will be resolved in upgrade
1 parent 58e52f0 commit d428973

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-plugin-jsx-a11y": "^3.0.2",
4747
"eslint-plugin-react": "^6.9.0",
4848
"exports-loader": "^0.6.3",
49-
"extract-text-webpack-plugin": "^1.0.1",
49+
"extract-text-webpack-plugin": "github:michelebertoli/extract-text-webpack-plugin#614c3bb1ed72587218aa644df12bbf514fb77a06",
5050
"file-loader": "^0.9.0",
5151
"html-loader": "^0.4.4",
5252
"image-webpack-loader": "^3.1.0",

src/scripts/components/site-content/site-content.css

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
11
@value screen_small_min_width from '../../../styles/base/breakpoints.css';
22
@value screen_medium_min_width from '../../../styles/base/breakpoints.css';
3-
4-
/*
5-
* TODO: Attempting to use values or compose styles from colors.css leads to
6-
* the error:
7-
*
8-
* "Order in extracted chunk undefined"
9-
*
10-
* Unfortunately, it's not clear why. So for now, the colors used here are
11-
* hardcoded. I need to figure out why this happens!
12-
*
13-
* @value sky_blue from '../../../styles/base/colors.css';
14-
* composes: skyBlue from '../../../sstyles/base/colors.css';
15-
*/
3+
@value sky_blue from '../../../styles/base/colors.css';
164

175
.container {
186
padding: 1rem 1rem 2rem 1rem;
197
}
208

219
.containerHomePageNav {
2210
composes: container;
23-
background: #6090d0 url(./resting_above_treeline.jpg) bottom left no-repeat;
11+
background: sky_blue url(./resting_above_treeline.jpg) bottom left no-repeat;
2412
padding-bottom: 1rem;
2513
}
2614

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ const config = {
6666
configFile: './.eslintrc'
6767
},
6868
plugins: [
69-
new ExtractTextPlugin('[name].css'),
69+
new ExtractTextPlugin('[name].css', {
70+
ignoreOrder: true
71+
}),
7072
new webpack.ProvidePlugin({
7173
Promise: 'imports?this=>global!exports?global.Promise!es6-promise',
7274
fetch: 'imports?this=>global!exports?global.fetch!whatwg-fetch'

0 commit comments

Comments
 (0)