Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipe committed Oct 25, 2020
1 parent cff7f98 commit 292fd88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ A bare-minimum setup to serve as example to adapt to other scenarios (WordPress,

### Goal

- Handle the cleanest way possible (almost);
- Handle multiple entries, for example, one js/css for the backend and another js/css for frontend (not tackled yet);
- Handle the cleanest way possible;
- Handle multiple entries, for example, one js/css for the backend and another js/css for frontend;

In the moment we look forward for Vite to offer these:

Expand All @@ -16,6 +16,8 @@ In the moment we look forward for Vite to offer these:

Works on dev server, but still have to handle production build (SOON) https://github.com/vitejs/vite/issues/341.

TODO Handle multiple entries

### Notes about our example code

- This first level "public" folder is the server's public root, "public/index.php" is the front controller or bootstrap file;
Expand Down
1 change: 1 addition & 0 deletions vite/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<h1>Vue {{ msg }}</h1>
<!-- TODO handle assets <img alt="Vue logo" src="/assets/logo.png" /> -->
<button @click="count++">count is: {{ count }}</button>
<p>Edit <code>components/HelloWorld.vue</code> to test hot module replacement.</p>
</template>
Expand Down
2 changes: 1 addition & 1 deletion vite/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
},

// required to load scripts from localhost
configureServer: function ({ app }) {
configureServer: ({ app }) => {
app.use(cors({ origin: '*' }))
}
}

0 comments on commit 292fd88

Please sign in to comment.