New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-hot-loader

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-hot-loader

Vue.js js component loader for Webpack

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
180
increased by7.14%
Maintainers
2
Weekly downloads
 
Created
Source

Vue Hot Loader

GitHub license Build Status NPM Version

The Vue Hot Loader adds webpack HMR compatibility to your standard JS vue components.

Why

The standard vue-loader is hard to use with standard webpack loaders like the html loader. (If you want to use html interpolation for example.)

This loader only adds HMR capabilities to your normal JS code without the need to override all the loaders you know from other webpack / JS projects.

Usage

Install vue-hot-loader via npm or yarn.

yarn add vue-hot-loader #OR
npm install vue-hot-loader --dev

Add a loader in your webpack configuration.

module.exports = {
    // ...
    loaders: [
        {
            test: /\.vue\.js/,
            loader: 'vue-js',
        },
        // ...
    ],
    // ...
};

Call your vue component files [name].vue.js.

Example component.vue.js:

import template from './component.html';

import './component.less';

export default {
    name: 'component',
    template,
};

PS: This example uses less-loader and vue-html-loader.

Keywords

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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