Weex js Loader
A wrapper loader of weex-loader for .js file
Install
requires weex-loader installed
npm i weexjs-loader
When do I need it?
If you want to use weex-loader but do not want to make .vue or .we file and want to separate html,css,js files.
Usage
Use the loader either via your webpack config or inline.
Via webpack config
webpack.config.js
const path = moduleexports = module: rules: test: /\.js$/ include: path loader: 'weexjs-loader'
In your application
Inline
In your application
How it works
DIR
app/ - app.js - app.html - app.cssassets/ - ...
app.js
name: 'app' templateSrc: './app.html' styleSrc: './app.css'
imported component object equals below
app.we
License
The MIT License (MIT)
Copyright (c) 2017 Elevista