Skip to content

Commit

Permalink
tweek output
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieali committed Jan 22, 2023
1 parent d75aacb commit ee4dd61
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 8 deletions.
189 changes: 187 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Frank Ali"
},
"description": "A 3D environment for rolling game dice",
"version": "1.0.7",
"version": "1.0.8",
"keywords": [
"3D",
"dice",
Expand Down Expand Up @@ -49,6 +49,7 @@
},
"devDependencies": {
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-visualizer": "^5.6.0",
"vite": "^4.0.4"
},
Expand Down
12 changes: 7 additions & 5 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path')
const { defineConfig } = require('vite')
const copy = require('rollup-plugin-copy')
const del = require('rollup-plugin-delete')
const minifyEs = require('./rollup-plugin-minifyEs').default
// const { visualizer } = require('rollup-plugin-visualizer');

Expand All @@ -16,7 +17,6 @@ module.exports = defineConfig({
esm: `dice-box.es.min.js`,
})[format]
},
assetsDir: 'assets/dice-box',
rollupOptions: {
preserveEntrySignatures: 'allow-extension',
input: {
Expand All @@ -43,15 +43,17 @@ module.exports = defineConfig({
{
// src: path.resolve(__dirname, 'src/assets/*'),
src: [
path.resolve(__dirname, 'src/assets/ammo'),
path.resolve(__dirname, 'src/assets/models'),
path.resolve(__dirname, 'src/assets/themes')
path.resolve(__dirname, 'dist/assets/dice-box/*')
],
dest: path.resolve(__dirname, 'dist/assets/dice-box')
dest: path.resolve(__dirname, 'dist/assets')
}
],
hook: 'writeBundle'
}),
del({
targets: path.resolve(__dirname, 'dist/assets/dice-box'),
hook: 'closeBundle'
})
// visualizer({
// open: true,
// brotliSize: true
Expand Down

0 comments on commit ee4dd61

Please sign in to comment.