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

Commit

Permalink
test: Fix order by id test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Jul 7, 2017
1 parent b70c6ec commit 2c2f12b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
10 changes: 10 additions & 0 deletions test/__snapshots__/webpack-integration.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Webpack Integration Tests chunk-modules-ordered-by-id 1`] = `
".block {
color: tomato;
}
.App {
color: black;
}
"
`;

exports[`Webpack Integration Tests common-async 1`] = `
"a
b
Expand Down
1 change: 0 additions & 1 deletion test/cases/chunk-modules-ordered-by-id/a.js

This file was deleted.

4 changes: 2 additions & 2 deletions test/cases/chunk-modules-ordered-by-id/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require('./a');
require('./b.txt');
require('./a.css');
require('./b.css');
22 changes: 17 additions & 5 deletions test/cases/chunk-modules-ordered-by-id/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
var ExtractTextPlugin = require("../../../");
import ExtractTextPlugin from '../../../src/index';

module.exports = {
entry: "./index",
plugins: [
new ExtractTextPlugin("file.css")
]
entry: './index',
module: {
loaders: [
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: { loader: 'style-loader' },
use: { loader: 'css-loader', },
})
},
],
},
plugins: [
new ExtractTextPlugin('file.css'),
],
};

0 comments on commit 2c2f12b

Please sign in to comment.