File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change
1
+ npm-debug.log
Original file line number Diff line number Diff line change 3
3
Simplest webpack loader for https://github.com/Quramy/typed-css-modules
4
4
Has no configuration atm.
5
5
6
- Use it as preloader. It will generate ` .css.d.ts ` files near the ` .css `
6
+ I suggest using it as preloader. It will generate ` .css.d.ts ` files near the ` .css `
7
+ Please take a look at [ this discussion] ( https://github.com/Quramy/typed-css-modules/issues/2 ) to make a decision.
7
8
8
9
``` js
9
10
Original file line number Diff line number Diff line change @@ -2,12 +2,16 @@ var DtsCreator = require('typed-css-modules');
2
2
3
3
var creator = new DtsCreator ( ) ;
4
4
5
- module . exports = function ( input , map ) {
5
+ module . exports = function ( source , map ) {
6
6
this . cacheable && this . cacheable ( ) ;
7
7
var callback = this . async ( ) ;
8
- creator . create ( this . resourcePath ) . then ( content => {
8
+
9
+ // creator.create(..., source) tells the module to operate on the
10
+ // source variable. Check API for more details.
11
+ creator . create ( this . resourcePath , source ) . then ( content => {
9
12
content . writeFile ( ) . then ( _ => {
10
- callback ( null , input , map ) ;
13
+ callback ( null , source , map ) ;
11
14
} ) ;
12
15
} ) ;
13
16
} ;
17
+
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " typed-css-modules-loader" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " Webpack loader for typed-css-modules" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments