File tree 3 files changed +2
-4
lines changed
3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ var sources = [
45
45
];
46
46
var output = " ./dist/" ;
47
47
48
- gulp .watch ();
49
-
50
48
gulp .task (" rcc" , function () {
51
49
return gulp .src (qrcSource)
52
50
.pipe (qrc ())
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ module.exports = function(options) {
87
87
var self = this ;
88
88
var directory = file . path . split ( "/" ) . slice ( 0 , - 1 ) . join ( "/" ) ;
89
89
var str = file . contents . toString ( "utf8" ) ;
90
- var src = options . src || "QmlWeb.qrc = {{object}};" ;
90
+ var src = options . src || "QmlWeb.QResource.registerResource( {{object}}) ;" ;
91
91
92
92
return generateQrcFromString ( str , directory ) . then ( function ( result ) {
93
93
file . contents = Buffer . from ( src . replace ( "{{object}}" , result ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp-qmlweb" ,
3
- "version" : " 0.2.0 " ,
3
+ "version" : " 0.2.1 " ,
4
4
"description" : " compiles Qt resource files for use with the qmlweb library" ,
5
5
"repository" : " qmlweb/gulp-qmlweb" ,
6
6
"files" : [
You can’t perform that action at this time.
0 commit comments