network-loader
A webpack loader to load resource from the network.
Last updated 2 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install network-loader 
SYNC missed versions from official npm registry.

network-loader

NPM version NPM downloads CircleCI donate chat

This is just for fun.

You can just import from a URL and use it like this:

import Vue from 'https://unpkg.com/vue/dist/vue.js'

new Vue({
  el: '#app',
  template: '<h1>hello {{ msg }}</h1>',
  data: {
    msg: 'world'
  }
})

Install

yarn add network-loader

Usage

In your webpack config:

// webpack.config.js
module.exports = {
  entry: './main.js',
  module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'network-loader',
        exclude: [/node_modules/]
      }
    ]
  }
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

network-loader © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).

github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily

Current Tags

  • 0.1.0                                ...           latest (2 years ago)

1 Versions

  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |