mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
add resourceQuery for webpack loader
This commit is contained in:
2
types/webpack/index.d.ts
vendored
2
types/webpack/index.d.ts
vendored
@@ -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[];
|
||||
/**
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user