Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-draggable-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
vue-draggable-grid
Commits
37527ef7
Commit
37527ef7
authored
2 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Use vite for building
parent
c85e6eba
No related branches found
No related tags found
1 merge request
!2
Resolve "Implement basic functionality"
Pipeline
#114402
failed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package.json
+1
-1
1 addition, 1 deletion
package.json
vite.config.js
+33
-0
33 additions, 0 deletions
vite.config.js
with
34 additions
and
1 deletion
package.json
+
1
−
1
View file @
37527ef7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"name"
:
"vue-draggable-grid"
,
"name"
:
"vue-draggable-grid"
,
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"scripts"
:
{
"scripts"
:
{
"build"
:
"
rollup -c
"
,
"build"
:
"
vite build
"
,
"example:build"
:
"vite build example"
,
"example:build"
:
"vite build example"
,
"example:dev"
:
"vite example"
,
"example:dev"
:
"vite example"
,
"example:preview"
:
"vite preview example --port 4173"
,
"example:preview"
:
"vite preview example --port 4173"
,
...
...
This diff is collapsed.
Click to expand it.
rollup
.config.
m
js
→
vite
.config.js
+
33
−
0
View file @
37527ef7
import
vue
from
"
rollup-plugin-vue
"
;
// vite.config.js
import
vue
from
"
@vitejs/plugin-vue2
"
;
import
{
defineConfig
}
from
"
vite
"
;
import
{
resolve
}
from
"
path
"
;
import
peerDepsExternal
from
"
rollup-plugin-peer-deps-external
"
;
import
peerDepsExternal
from
"
rollup-plugin-peer-deps-external
"
;
export
default
[
export
default
defineConfig
({
{
plugins
:
[
vue
(),
peerDepsExternal
()],
input
:
"
src/index.js
"
,
build
:
{
lib
:
{
/* eslint-env node */
entry
:
resolve
(
__dirname
,
"
src/index.js
"
),
name
:
"
vue-draggable-grid
"
,
},
output
:
[
output
:
[
{
{
format
:
"
esm
"
,
format
:
"
esm
"
,
...
@@ -14,6 +22,12 @@ export default [
...
@@ -14,6 +22,12 @@ export default [
file
:
"
dist/vue-draggable-grid.js
"
,
file
:
"
dist/vue-draggable-grid.js
"
,
},
},
],
],
plugins
:
[
vue
(),
peerDepsExternal
()],
rollupOptions
:
{
output
:
{
globals
:
{
vue
:
"
Vue
"
,
},
},
},
},
},
]
;
})
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment