| v1 | v2 |
|---|---|
![]() |
![]() |
✨ This repo was created to demonstrate that vue-json-editor and svg-symbol-sprite-loader packages can coexist together.
🐛 Since when I used both packages in a project some incompatibility errors occurred and the default json editor icons were not displayed.
Maybe someone will find it helpful too 😁
| v1 | v2 |
|---|---|
vue@2 |
vue@2 |
@vue/cli webpack babel |
vite |
vue-json-editor |
json-editor-vue |
svg-symbol-sprite-loader |
vite-plugin-svg-icons |
vue-clipboard2 |
v-clipboard |
- The
vue-json-editorpackage is a vue component that can be used to create a json editor. - The
svg-symbol-sprite-loaderpackage is awebpackloader and plugin for creating SVG symbol sprites with Vue. - The
vue-clipboard2package is a simple modern approach to copy text to clipboard usingclipboard.jsin Vue.
- This release has followed the official migration guide from @vue/cli to vite to take advantage of performance improvements and ease of configuration. Unlike
@vue/cli, which useswebpackandbabel,vitetakes advantage of modern JavaScript features such as nativeES modules, making the development process faster and more efficient.
Because of this, several packages have had to be replaced to be compatible with vite:
- The
json-editor-vuepackage is used instead ofvue-json-editor. - The
vite-plugin-svg-iconspackage is used instead ofsvg-symbol-sprite-loader. - The
v-clipboardpackage is used instead ofvue-clipboard2.
| v1 | v2 |
|---|---|
serve |
dev |
build |
build |
preview |
|
lint |
lint |
deploy |
deploy |
npm installnpm run servenpm run devnpm run buildnpm run previewnpm run lintnpm run deploy
