Skip to content

Commit c64493d

Browse files
committed
feat: rename packages
closes #236
1 parent 4db99be commit c64493d

File tree

12 files changed

+21
-20
lines changed

12 files changed

+21
-20
lines changed

dev/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"devDependencies": {
1616
"@babel/core": "^7.16.0",
1717
"@babel/preset-env": "^7.16.4",
18-
"@vuetify/vite-plugin": "^1.0.0-alpha.1",
18+
"vite-plugin-vuetify": "^1.0.0-alpha.1",
1919
"babel-loader": "^8.2.3",
2020
"css-loader": "^6.5.1",
2121
"pug": "^3.0.2",
@@ -24,7 +24,7 @@
2424
"url-loader": "^4.1.1",
2525
"vite-plugin-inspect": "^0.4.3",
2626
"vue-style-loader": "^4.1.3",
27-
"vuetify-loader": "^2.0.0-alpha.1",
27+
"webpack-plugin-vuetify": "^2.0.0-alpha.1",
2828
"webpack-cli": "^4.9.1",
2929
"webpack-dev-server": "^4.6.0"
3030
}

dev/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import vue from '@vitejs/plugin-vue'
2-
import vuetify from '@vuetify/vite-plugin'
2+
import vuetify from 'vite-plugin-vuetify'
33
import path from 'path'
44
import Inspect from 'vite-plugin-inspect'
55

dev/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path')
22
const webpack = require('webpack')
33
const { VueLoaderPlugin } = require('vue-loader')
4-
const { VuetifyLoaderPlugin } = require('vuetify-loader')
4+
const { VuetifyPlugin } = require('webpack-plugin-vuetify')
55
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
66

77
const isProd = process.env.NODE_ENV === 'production'
@@ -90,7 +90,7 @@ module.exports = {
9090
},
9191
plugins: [
9292
new VueLoaderPlugin(),
93-
new VuetifyLoaderPlugin({
93+
new VuetifyPlugin({
9494
styles: 'expose',
9595
// progressiveImages: true
9696
}),

packages/vite-plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"name": "@vuetify/vite-plugin",
2+
"name": "vite-plugin-vuetify",
33
"version": "1.0.0-alpha.10",
4+
"description": "A Vite plugin for treeshaking Vuetify components and more",
45
"main": "dist/index.js",
56
"types": "dist/index.d.ts",
67
"repository": {
File renamed without changes.

packages/vuetify-loader/README.md renamed to packages/webpack-plugin/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vuetify-loader
1+
# webpack-plugin-vuetify
22

33
<div align="center">
44
<a href="https://www.patreon.com/kaelwd">
@@ -11,15 +11,15 @@
1111
</div>
1212

1313
## Automatic Imports
14-
`vuetify-loader` will automatically import all Vuetify components as you use them
14+
`webpack-plugin-vuetify` will automatically import all Vuetify components as you use them
1515

1616
```js
1717
// webpack.config.js
18-
const { VuetifyLoaderPlugin } = require('vuetify-loader')
18+
const { VuetifyPlugin } = require('webpack-plugin-vuetify')
1919

2020
module.exports = {
2121
plugins: [
22-
new VuetifyLoaderPlugin({ autoImport: true }), // Enabled by default
22+
new VuetifyPlugin({ autoImport: true }), // Enabled by default
2323
],
2424
}
2525
```
@@ -70,11 +70,11 @@ Will be compiled into:
7070
### Customising variables
7171
```js
7272
// webpack.config.js
73-
const { VuetifyLoaderPlugin } = require('vuetify-loader')
73+
const { VuetifyPlugin } = require('webpack-plugin-vuetify')
7474

7575
module.exports = {
7676
plugins: [
77-
new VuetifyLoaderPlugin({ styles: 'expose' }),
77+
new VuetifyPlugin({ styles: 'expose' }),
7878
],
7979
}
8080
```
@@ -96,11 +96,11 @@ export default createVuetify()
9696
### Remove all style imports
9797
```js
9898
// webpack.config.js
99-
const { VuetifyLoaderPlugin } = require('vuetify-loader')
99+
const { VuetifyPlugin } = require('webpack-plugin-vuetify')
100100

101101
module.exports = {
102102
plugins: [
103-
new VuetifyLoaderPlugin({ styles: 'none' }),
103+
new VuetifyPlugin({ styles: 'none' }),
104104
],
105105
}
106106
```
@@ -116,11 +116,11 @@ Vuetify 3 uses precompiled css by default, these imports can optionally be modif
116116

117117
```js
118118
// webpack.config.js
119-
const { VuetifyLoaderPlugin } = require('vuetify-loader')
119+
const { VuetifyPlugin } = require('webpack-plugin-vuetify')
120120

121121
module.exports = {
122122
plugins: [
123-
new VuetifyLoaderPlugin({ styles: 'sass' }),
123+
new VuetifyPlugin({ styles: 'sass' }),
124124
],
125125
}
126126
```

packages/vuetify-loader/package.json renamed to packages/webpack-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vuetify-loader",
2+
"name": "webpack-plugin-vuetify",
33
"version": "2.0.0-alpha.9",
44
"description": "A Webpack plugin for treeshaking Vuetify components and more",
55
"main": "dist/index.js",
@@ -17,7 +17,7 @@
1717
"bugs": {
1818
"url": "https://github.com/vuetifyjs/vuetify-loader/issues"
1919
},
20-
"homepage": "https://github.com/vuetifyjs/vuetify-loader/packages/vuetify-loader",
20+
"homepage": "https://github.com/vuetifyjs/vuetify-loader/packages/webpack-plugin",
2121
"dependencies": {
2222
"@vuetify/loader-shared": "^1.3.0",
2323
"decache": "^4.6.0",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { default as VuetifyLoader } from './scriptLoader'
2-
export { VuetifyLoaderPlugin } from './plugin'
2+
export { VuetifyPlugin } from './plugin'
33
// export { ProgressiveLoaderModule as VuetifyProgressiveModule } from './progressive-loader'

packages/vuetify-loader/src/plugin.ts renamed to packages/webpack-plugin/src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function isSubdir (root: string, test: string) {
2828
return relative && !relative.startsWith('..') && !path.isAbsolute(relative)
2929
}
3030

31-
export class VuetifyLoaderPlugin {
31+
export class VuetifyPlugin {
3232
options: Required<Options>
3333

3434
constructor (options: Options) {

0 commit comments

Comments
 (0)