Skip to content

Commit

Permalink
cleanup up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipe committed Jun 3, 2020
1 parent 1ffeb56 commit cc3399e
Show file tree
Hide file tree
Showing 9 changed files with 2,053 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.DS_Store
/vite/node_modules
node_modules
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# vite-php-setup
Trying to run Vite on traditional PHP sites
Trying to run Vite on traditional PHP sites.

Couldn't do it yet

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions public/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@
</head>

<body>
<div id="app">
<template>
<p>fdsafdsa</p>
</template>
</div>
<div id="app"></div>

<script type="module" src="/_assets/index.2cef94bc.js"></script>
<script type="module" src="/_assets/index.593ae33f.js"></script>
</body>

</html>
15 changes: 1 addition & 14 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
<html lang="en">

<head>
<script type="module">
import "/vite/hmr"
window.__DEV__ = true
window.process = {
env: {
"NODE_ENV": "development",
"BASE_URL": "/"
}
}
</script>

<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -22,9 +11,7 @@
<body>
<?= 'PHP output' ?>

<div id="app">
<p>fdsafdsa</p>
</div>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>

Expand Down
6 changes: 1 addition & 5 deletions vite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
</head>

<body>
<div id="app">
<template>
<p>fdsafdsa</p>
</template>
</div>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>

Expand Down
1 change: 0 additions & 1 deletion vite/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<img alt="Vue logo" src="./assets/logo.png" />
<HelloWorld msg="Hello Vue 3.0 + Vite" />
<slot />
</template>

<script>
Expand Down
8 changes: 4 additions & 4 deletions vite/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ module.exports = {
// ws: true
// },

// '/': {
// target: 'http://vite-php-setup.test',
// changeOrigin: true
// }
'/': {
target: 'http://vite-php-setup.test',
changeOrigin: true
}
}
}
Loading

0 comments on commit cc3399e

Please sign in to comment.