0.1.4 • Published 22 days ago

nj-icons v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
22 days ago

nj-icons

npm包地址

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

npm包 打包命令

npm run lib

使用说明

  • 引入
import NjIcons from 'nj-icons'
import 'nj-icons/lib/nj-icons.css'
Vue.use(NjIcons) // 全局svg-icon
  • 使用
<svg-icon icon-class="403" />
  • 配置svg-sprite-loader
// 其中 /node_modules/nj-icons/src/components/icons 地址指向nj-icons的svg文件夹
config.module
      .rule('svg')
      .exclude.add(resolve('/node_modules/nj-icons/src/components/icons'))
      .end()
    config.module
      .rule('icons')
      .test(/\.svg$/)
      .include.add(resolve('/node_modules/nj-icons/src/components/icons'))
      .end()
      .use('svg-sprite-loader')
      .loader('svg-sprite-loader')
      .options({
        symbolId: 'icon-[name]'
      })
      .end()

npm发布

  • 切换npm源
必须是npm官方源
npm config set registry https://registry.npmjs.org
  • 登录
npm login
  • 版本修改
// package.json中
"version": "x.x.x",
  • 更新npm包
npm run lib
  • 发布
npm publish

Customize configuration

See Configuration Reference.

0.1.4

22 days ago

0.1.3

22 days ago

0.0.11

1 year ago

0.0.12

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago