network-loader

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i network-loader

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • rem