README
安装
npm install
启动
npm run dev
打包
npm run build
项目如何调用公共npm包?
1.npm uninstall ww-library 2.npm install ww-library@latest 3.项目中,增加以下两处 js:
template:
A项目引用公共npm包样式问题?
可以引用npm包dist/style.css
也可以把样式写在A项目里
建议第二种:基础npm包的样式在A项目里本来就有一套 没必要重复写
public vue
<script type="module">
import wwLibraryCesmXjnls from 'https://cdn.skypack.dev/ww-library-cesm-xjnls';
</script>
npm install
npm run dev
npm run build
1.npm uninstall ww-library 2.npm install ww-library@latest 3.项目中,增加以下两处 js:
template:
可以引用npm包dist/style.css
也可以把样式写在A项目里
建议第二种:基础npm包的样式在A项目里本来就有一套 没必要重复写