0.1.0 • Published 7 years ago
network-loader v0.1.0
network-loader
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- 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
0.1.0
7 years ago