JS Frameworks
Remove Vue
- Remove all
Vue
packages.
npm uninstall vue vuex vue-loader @vue/compiler-sfc
1
yarn remove vue vuex vue-loader @vue/compiler-sfc
1
- Remove
src/vue
directory.
rm -r src/vue
1
- Remove everything from
src/main.js
except forimport './css/main.css'
import './css/main.css'
1
- Remove
Vue
from.eslintrc.js
.
module.exports = {
extends: [
...
- 'plugin:vue/vue3-recommended'
],
plugins: [
- 'vue'
]
...
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
- Remove
Vue
fromwebpack.common.js
.
...
- const webpack = require('webpack')
- const { VueLoaderPlugin } = require('vue-loader')
...
module.exports = {
...
module: {
rules: [
- {
- test: /\.vue$/,
- loader: 'vue-loader'
- }
...
]
},
plugins: [
...
- new VueLoaderPlugin(),
- new webpack.DefinePlugin({
- __VUE_OPTIONS_API__: 'true',
- __VUE_PROD_DEVTOOLS__: 'false'
- })
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Alpine.js
Alpine.jsopen in new window is a rugged, minimal tool for composing behavior directly in your markup.
- Install
alpinejs
.
npm install alpinejs
1
yarn add alpinejs
1
- import
alpinejs
intosrc/main.js
import Alpine from 'alpinejs'
window.Alpine = Alpine
Alpine.start()
1
2
3
4
5
2
3
4
5