Skip to content

shuyanzi/snowpack-vue2

Repository files navigation

vue-cli-demo

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

run width snowpack:
npm run serve:sp

Compiles and minifies for production

npm run build

build width snowpack:
npm run build:sp

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

snowpack.config.json

{
  "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"
    }
  }
}

snowpack

2020.07.08
加载vue2 template ✅
2020.07.12
style scoped, add data-v-${id} to DOM✅
待办:
1、tsx support
......

snowpack-plugin-vue2

cd snowpack-plugin-vue2
npm pack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published