Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-loader

Package Overview
Dependencies
Maintainers
1
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-loader - npm Package Compare versions

Comparing version 0.3.0 to 1.1.0

2

index.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc