Skip to content

Commit

Permalink
Merge pull request webpack#4273 from webpack/test/dep-and-etp
Browse files Browse the repository at this point in the history
updated api for extract-text-webpack-plugin
  • Loading branch information
sokra authored Feb 16, 2017
2 parents 86f7df1 + 8f9b472 commit 3edf645
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 200 deletions.
6 changes: 3 additions & 3 deletions examples/code-splitted-css-bundle/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module.exports = {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
notExtractLoader: "style-loader",
loader: "css-loader"
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: "css-loader"
})
},
{ test: /\.png$/, loader: "file-loader" }
Expand Down
4 changes: 2 additions & 2 deletions examples/css-bundle/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module.exports = {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
loader: "css-loader"
use: ExtractTextPlugin.extract({
use: "css-loader"
})
},
{ test: /\.png$/, loader: "file-loader" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ module.exports = {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
notExtractLoader: "style-loader",
loader: "css-loader"
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: "css-loader"
})
},
{ test: /\.png$/, loader: "file-loader" }
Expand Down
4 changes: 2 additions & 2 deletions test/HotTestCases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ describe("HotTestCases", function() {
enforce: "pre"
}, {
test: /\.css$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: "style-loader",
use: ExtractTextPlugin.extract({
fallback: "style-loader",
loader: "css-loader"
})
}]
Expand Down
4 changes: 2 additions & 2 deletions test/statsCases/separate-css-bundle/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var moduleConfig = {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: "style-loader",
use: ExtractTextPlugin.extract({
fallback: "style-loader",
loader: "css-loader"
})
}
Expand Down
Loading

0 comments on commit 3edf645

Please sign in to comment.