-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from vordgi/ncm-13
ncm-13 add custom mode instead of detailed
- Loading branch information
Showing
13 changed files
with
317 additions
and
73 deletions.
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
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 @@ | ||
declare module 'css-loader/dist/utils'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const MINIFIED = 'minified'; | ||
export const DETAILED = 'detailed'; | ||
export const NONE = 'none'; | ||
export const VALID_MINIFIERS_KEYS = [MINIFIED, DETAILED, NONE] as const; | ||
export const CUSTOM = 'custom'; | ||
export const VALID_MINIFIERS_KEYS = [MINIFIED, NONE, CUSTOM] as const; |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { LoaderContext } from 'webpack/types'; | ||
|
||
abstract class BaseConverter { | ||
cache: {[resource: string]: {[className: string]: string}} = {}; | ||
cache: { [resource: string]: { [className: string]: string } } = {}; | ||
|
||
abstract getLocalIdent({ resourcePath }: LoaderContext<any>, _localIdent: string, origName: string): string; | ||
abstract getLocalIdent({ resourcePath }: LoaderContext<any>, _localIdent: string, origName: string, options: unknown): string; | ||
}; | ||
|
||
export default BaseConverter; |
Oops, something went wrong.