Skip to content

Commit ba00dcc

Browse files
committed
Stylus hot-reload imports
1 parent 0bfbb3f commit ba00dcc

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.meteor/versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ akryum:vue-jade@0.0.1
1212
akryum:vue-less@0.0.4
1313
akryum:vue-router@0.2.1
1414
akryum:vue-sass@0.0.1
15-
akryum:vue-stylus@0.0.1
15+
akryum:vue-stylus@0.0.2
1616
akryum:vuex@0.3.0
1717
allow-deny@1.0.5
1818
apollo@0.0.3

imports/ui/pixels.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
margin = 12px
1+
margin = 24px

packages/vue-stylus/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
name: 'akryum:vue-stylus',
3-
version: '0.0.1',
3+
version: '0.0.2',
44
summary: 'Add stylus support for vue components',
55
git: 'https://github.com/Akryum/meteor-vue-component',
66
documentation: 'README.md'

packages/vue-stylus/vue-stylus.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ function statOrNull(path) {
1717

1818
global.vue.lang.stylus = Meteor.wrapAsync(function({
1919
source,
20-
inputFile
20+
inputFile,
21+
dependencyManager
2122
}, cb) {
2223

2324
function parseImportPath(filePath, importerDir) {
@@ -50,6 +51,8 @@ global.vue.lang.stylus = Meteor.wrapAsync(function({
5051
return null;
5152
}
5253

54+
dependencyManager.addDependency(filePath);
55+
5356
return [filePath];
5457
},
5558
readFile(filePath) {

0 commit comments

Comments
 (0)