vue-loader
Advanced tools
Comparing version 0.3.0 to 1.1.0
@@ -6,3 +6,3 @@ var compiler = require('vue-component-compiler') | ||
var data | ||
compiler.compile(content, function (err, res) { | ||
compiler.compile(content, this.resourcePath, function (err, res) { | ||
if (err) throw err | ||
@@ -9,0 +9,0 @@ data = res |
{ | ||
"name": "vue-loader", | ||
"version": "0.3.0", | ||
"version": "1.1.0", | ||
"description": "Webpack loader for single-file Vue components", | ||
@@ -17,4 +17,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"vue-component-compiler": "^1.0.0" | ||
"vue-component-compiler": "^1.1.0" | ||
} | ||
} |
@@ -50,2 +50,8 @@ # vue-loader | ||
And you can import using the `src` attribute (note you'll have to save the vue file to trigger a rebuild since the imported file is not tracked by Browserify as a dependency): | ||
``` html | ||
<style lang="stylus" src="style.styl"></style> | ||
``` | ||
Under the hood, the loader will: | ||
@@ -56,3 +62,3 @@ | ||
You can `require()` other stuff in the `<script>` as usual. | ||
You can `require()` other stuff in the `<script>` as usual. Note that for CSS-preprocessor @imports, the path should be relative to your project root directory. | ||
@@ -99,3 +105,3 @@ ## Usage | ||
And here's a SublimeText syntax definition for enabling language hihglighting/support in these embbeded code blocks: https://gist.github.com/yyx990803/9194f92d96546cebd033 | ||
And here's a [SublimeText package](https://github.com/vuejs/vue-syntax-highlight) for enabling language highlighting/support in these embbeded code blocks. | ||
@@ -106,5 +112,4 @@ ## Example | ||
## Todos | ||
--- | ||
- Tests | ||
- Browserify transform (vueify?) | ||
If you use Browserify, there's also [vueify](https://github.com/vuejs/vueify) that does the same thing. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3006
1
111