1.1.1 • Published 6 years ago

vickyzhaolu v1.1.1

Weekly downloads
45
License
-
Repository
-
Last release
6 years ago

faraway

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

HOW TO USE

  1. main.js中引入
    import VickyButton from 'vickyzhaolu'
    import 'vickyzhaolu/dist/static/css/app.css'
    import 'vickyzhaolu/dist/static/iconfont/iconfont.css'
    Vue.use(VickyButton);
  2. 安装px2rem-loader stylus stylus-loader lib-flexible
    main.js中引入flexible.js
    import 'lib-flexible/flexible.js'
  3. 修改utils.js配置文件
    exports.cssLoaders=function(options){
    .....
    const px2remLoader = {
    loader: 'px2rem-loader',
    options: {
    remUnit: 37.5
    }
    }
    ....
    function generateLoaders (loader, loaderOptions) {
    const loaders = options.usePostCSS ? cssLoader, px2remLoader, postcssLoader : cssLoader, px2remLoader

      if (loader) {  
      loaders.push({  
          loader: loader + '-loader',  
          options: Object.assign({}, loaderOptions, {  
          sourceMap: options.sourceMap  
          })  
      })  
      }  

    }

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago