Skip to content

Commit 0784924

Browse files
committed
Add test to cover issue NMFR#52 bug (not yet resolved)
1 parent 14c9344 commit 0784924

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#root {
2+
background-color: #f00;
3+
}
4+
body {
5+
text-align: center;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#root {
2+
width: 640px;
3+
height: 360px;
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#root{width:640px;height:360px;background-color:red}body{text-align:center}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('./a.css');
2+
require('./b.css');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import ExtractTextPlugin from 'extract-text-webpack-plugin';
2+
import OptimizeCssAssetsPlugin from '../../../src/';
3+
4+
module.exports = {
5+
entry: './index',
6+
module: {
7+
rules: [
8+
{
9+
test: /\.css$/,
10+
use: ExtractTextPlugin.extract({
11+
fallback: { loader: 'style-loader' },
12+
use: {
13+
loader: 'css-loader',
14+
options: { minimize: true }
15+
}
16+
})
17+
},
18+
],
19+
},
20+
plugins: [
21+
new ExtractTextPlugin('file.css'),
22+
new OptimizeCssAssetsPlugin()
23+
],
24+
};

0 commit comments

Comments
 (0)