This repository was archived by the owner on May 16, 2024. It is now read-only.
File tree 5 files changed +23
-3
lines changed
5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ node_modules
3
3
# ide
4
4
.idea
5
5
/* .iml
6
+ test /bundle.js
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ejs-compiled-loader" ,
3
- "version" : " 0.2 .0" ,
3
+ "version" : " 0.3 .0" ,
4
4
"description" : " EJS webpack loader (without frontend dependencies)" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " echo \" Error: no test specified \" && exit 1 "
7
+ "test" : " cd test && ../node_modules/.bin/webpack && node bundle.js "
8
8
},
9
9
"repository" : {
10
10
"type" : " git" ,
23
23
},
24
24
"homepage" : " https://github.com/bazilio91/ejs-compiled-loader" ,
25
25
"dependencies" : {
26
- "ejs" : " ^1 .0.0" ,
26
+ "ejs" : " ^2 .0.0" ,
27
27
"uglify-js" : " ~1.3.4"
28
+ },
29
+ "devDependencies" : {
30
+ "node-libs-browser" : " ^0.5.0" ,
31
+ "webpack" : " ^1.9.4"
28
32
}
29
33
}
Original file line number Diff line number Diff line change
1
+ var tpl = require ( "./template.ejs" ) ;
2
+ console . log ( tpl ( { noun : "World" } ) ) ;
Original file line number Diff line number Diff line change
1
+ Hello, <%= noun%> !
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ entry : "./app.js" ,
3
+ output : {
4
+ path : __dirname ,
5
+ filename : "bundle.js"
6
+ } ,
7
+ module : {
8
+ loaders : [
9
+ { test : / \. e j s $ / , loader : require . resolve ( "../" ) }
10
+ ]
11
+ }
12
+ }
You can’t perform that action at this time.
0 commit comments