npm install
npm run serve
run width snowpack:
npm run serve:sp
npm run build
build width snowpack:
npm run build:sp
npm run test
npm run lint
{
"extends": "@snowpack/app-scripts-vue",
"plugins": [
"snowpack-plugin-vue-2"
],
"scripts": {
"build:css": "postcss",
"mount:@/": "mount @/ --to /src",
"mount:vue": "mount @/ --to /node_modules"
},
"installOptions": {
"alias": {
"vue": "vue/dist/vue.esm.js"
}
}
}
2020.07.08
加载vue2 template ✅
2020.07.12
style scoped, add data-v-${id} to DOM✅
待办:
1、tsx support
......
cd snowpack-plugin-vue2
npm pack