-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add safe traverse to loaderoptionsplugin (#77)
* fix: add safe traverse to loaderoptionsplugin * test: write a failing test case
- Loading branch information
Pavithra Kodmad
authored
Mar 1, 2017
1 parent
68a2dfd
commit 4020043
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
lib/transformations/loaderOptionsPlugin/__testfixtures__/loaderOptionsPlugin-3.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Don't modify LoaderOptionsPlugin | ||
|
||
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
module.exports = { | ||
entry: ['./index.js'], | ||
output: { | ||
filename: 'bundle.js' | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /\.css$/, | ||
use: ExtractTextPlugin.extract([ | ||
'css-loader' | ||
]) | ||
}] | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters