Closed Jinjiang closed 7 years ago
I have some additional ideas. In the loader, we can also do these:
weex-template-compiler
, developer can write "template syntactic sugar", which can be compiled in loader.PostCSS has been supported in this loader. The other jobs can be done in weex-template-compiler or weex-styler instead. And it's possible to work with all packaging tools. The loader is just a connection to webpack.
The new version is in branch
weex-next
which is forked fromvue-loader
. Based on web platform, weex-vue-loader make these changes below:parts
<template>
: useweex-template-compiler
<style>
: useweex-styler
<script>
: convertrequire('@weex-module/xxx')
features
isServer
cssModules
CssSourceMap
isScoped
default
defaultLoaders
lib/template-compiler
image[src]
conversiondisabled temporarily
new option