mirror of https://github.com/webpack/webpack.git
fix linting
This commit is contained in:
parent
d211ffb3f3
commit
9f12f2f2af
|
|
@ -302,11 +302,11 @@ module.exports = function(yargs, argv, convertOptions) {
|
|||
var rule = {
|
||||
test: new RegExp("\\." + name.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") + "$"),
|
||||
loader: binding
|
||||
}
|
||||
if (arg === "module-bind-pre") {
|
||||
rule.enforce = "pre"
|
||||
} else if (arg === "module-bind-post") {
|
||||
rule.enforce = "post"
|
||||
};
|
||||
if(arg === "module-bind-pre") {
|
||||
rule.enforce = "pre";
|
||||
} else if(arg === "module-bind-post") {
|
||||
rule.enforce = "post";
|
||||
}
|
||||
options.module[collection].push(rule);
|
||||
}, function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue