Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 2c2f12b

Browse files
committed
test: Fix order by id test
1 parent b70c6ec commit 2c2f12b

File tree

6 files changed

+29
-8
lines changed

6 files changed

+29
-8
lines changed

test/__snapshots__/webpack-integration.test.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3+
exports[`Webpack Integration Tests chunk-modules-ordered-by-id 1`] = `
4+
".block {
5+
color: tomato;
6+
}
7+
.App {
8+
color: black;
9+
}
10+
"
11+
`;
12+
313
exports[`Webpack Integration Tests common-async 1`] = `
414
"a
515
b

test/cases/chunk-modules-ordered-by-id/a.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require('./a');
2-
require('./b.txt');
1+
require('./a.css');
2+
require('./b.css');
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
var ExtractTextPlugin = require("../../../");
1+
import ExtractTextPlugin from '../../../src/index';
2+
23
module.exports = {
3-
entry: "./index",
4-
plugins: [
5-
new ExtractTextPlugin("file.css")
6-
]
4+
entry: './index',
5+
module: {
6+
loaders: [
7+
{
8+
test: /\.css$/,
9+
use: ExtractTextPlugin.extract({
10+
fallback: { loader: 'style-loader' },
11+
use: { loader: 'css-loader', },
12+
})
13+
},
14+
],
15+
},
16+
plugins: [
17+
new ExtractTextPlugin('file.css'),
18+
],
719
};

0 commit comments

Comments
 (0)