vue-cli-plugin-nativescript-vue-preset
Fixes most errors caused by installing <nativescript-vue> plugin. IMPORTANT: run "vue invoke nativescript-vue-preset" twice after adding. Adds .eslint.js, replaces ~tilde with @at paths & (fixes Unable to resolve path to module import/no-unresolved & impo
npm i --save vue-cli-plugin-nativescript-vue-preset
- Version: 0.1.8
- GitHub: https://github.com/vpiskunov/vue-cli-plugin-nativescript-vue-preset
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
vue add nativescript-vue-preset
Fixes most errors caused by installing <nativescript-vue> plugin.
BEFORE installing: create project using vue create --preset vpiskunov/preset-vue-ns {your-project-name}
IMPORTANT: run "vue invoke nativescript-vue-preset" twice after adding.
What does it do:
- ✅ Adds support for platform-tagged CSS lines: e.g. adding
[web]
will keep that line forweb
, but not in native. Multiple tags per line can be added e.g.[web][android]
will only keep that line inweb
&android
, but will remove it for iOS builds etc.- Supported platform tags are:
* web: ['web', 'w', 'cross']
* ios: ['native', 'n', 'ios', 'apple', 'cross']
* android: ['native', 'n', 'android', 'cross']
- Supported platform tags are:
- ✅ Adds .eslint.js, with support for fixed module-require resolving + disables unreasonable rules
(you can always edit .eslintrc.js to suit your style)
- ✅ Replaces
~/
tilde with@/
at paths: fixesUnable to resolve path to module
import/no-unresolved
&import/extensions