add resourceQuery for webpack loader

This commit is contained in:
Jiaren Liu
2018-03-25 11:04:38 +08:00
parent 106d393592
commit b2d16a83b3
2 changed files with 11 additions and 0 deletions

View File

@@ -421,6 +421,8 @@ declare namespace webpack {
include?: Condition | Condition[];
/** A Condition matched with the resource. */
resource?: Condition | Condition[];
/** A Condition matched with the resource query. */
resourceQuery?: Condition | Condition[];
/** A condition matched with the issuer */
issuer?: Condition | Condition[];
/**

View File

@@ -145,6 +145,15 @@ rule = {
loader: "babel-loader"
};
rule = {
test: /\.css$/,
resourceQuery: /module/,
loader: 'css-loader',
options: {
modules: true
}
};
declare const require: any;
declare const path: any;
configuration = {