Skip to content

Commit

Permalink
Separate build/dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
croxton committed Dec 5, 2023
1 parent f69a376 commit 5f89a33
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*
* This entry point is for development only
*/
import '/lib/ext/booster';
import './lib/ext/booster';

87 changes: 87 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"author": "Mark Croxton",
"license": "BSD 2-Clause",
"devDependencies": {
"@rollup/plugin-inject": "^5.0.5",
"vite": "^5.0.4"
}
}
7 changes: 6 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import inject from '@rollup/plugin-inject'
import { defineConfig } from 'vite';

export default defineConfig(({ command }) => {
if (command === 'serve') {
return {
// use defaults for dev
plugins: [
inject({
Booster: '/lib/booster'
}),
],
}
} else {
return {
Expand Down

0 comments on commit 5f89a33

Please sign in to comment.