Skip to content

Commit

Permalink
feat: build apps with Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Apr 22, 2024
1 parent 94c23eb commit 2ee8abf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/src/lib/shell/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = ({ config, paths }) => {
build: async () => {
await exec({
cmd: 'yarn',
args: ['build'],
// todo: command
args: ['build:vite'],
cwd: paths.shell,
env: getEnv({ ...baseEnvVars, ...getPWAEnvVars(config) }),
pipe: false,
Expand All @@ -30,6 +31,7 @@ module.exports = ({ config, paths }) => {
start: async ({ port }) => {
await exec({
cmd: 'yarn',
// todo: change command
args: ['start:vite'],
cwd: paths.shell,
env: getEnv({ ...baseEnvVars, port, ...getPWAEnvVars(config) }),
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-app/src/Alerter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Alerter = () => {
checked={critical}
onChange={() => setCritical(!critical)}
/>
<Button onClick={() => show(message)}>Show alert loolooloo</Button>
<Button onClick={() => show(message)}>Show alert</Button>
<Button onClick={hide}>Hide alert</Button>
<style jsx>{`
div {
Expand Down
1 change: 1 addition & 0 deletions shell/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default defineConfig(({ mode }) => {
},

build: {
outDir: 'build',
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
Expand Down

0 comments on commit 2ee8abf

Please sign in to comment.