GithubHelp home page GithubHelp logo

vue-notify's Introduction

先安装 VUE

npm install vue --save-dev

需要安装 vue-loader vue-template-compiler

  • vue-loader 解析.vue 文件的
  • vue-template-compiler 用来解析 vue 模板的
  • 在 vue-loader V15 的版本中,需要在 webpack.config.js 中加入相应的插件.具体做法如下:
  • 1.在 webpack.config.js 的头部引入插件:
const VueLoaderPlugin = require('vue-loader/lib/plugin');
  • 2.在导出的配置中添加插件:
module.export = {
  ... //之前配置不变
  plugins: [
    new VueLoaderPlugin()
  ]
}

引入 vue-router

  • 安装 vue-router
npm install vue-router --save-dev

开发

# 安装依赖
npm install
   
# 建议不要用cnpm安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org

# 启动服务
npm run dev

浏览器访问 http://localhost:8080

发布

npm run build

vue-notify's People

Contributors

zhmlsj avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.