Bit more sustainable file location.

This commit is contained in:
2019-03-08 18:32:56 +01:00
parent 88ea65e424
commit 0a09f2616b
5 changed files with 6 additions and 6 deletions

3
.gitignore vendored
View File

@@ -2,5 +2,4 @@
vendor
node_modules
.php_cs.cache
public/bundle.js
*.map
public/generated

View File

@@ -36,7 +36,7 @@ function startOpenAnimation() {
}
function loadFont() {
import('../node_modules/three/examples/fonts/helvetiker_bold.typeface').then(function (data) {
import('three/examples/fonts/helvetiker_bold.typeface').then(function (data) {
let font = new THREE.Font(data);
let geometry = new THREE.TextGeometry('Ja!', {
font: font,

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
<title>Nee... &bull; IsDeFooBarOpen.nl</title>
<script src="bundle.js"></script>
<script src="generated/bundle.js"></script>
</head>
<body class="closed">
<div id="stop-overlay">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
<title>JA! &bull; IsDeFooBarOpen.nl</title>
<script src="bundle.js"></script>
<script src="generated/bundle.js"></script>
</head>
<body class="open">
</body>

View File

@@ -5,7 +5,8 @@ module.exports = {
devtool: "source-map",
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'public')
path: path.resolve(__dirname, 'public', 'generated'),
publicPath: '/generated/'
},
module: {
rules: [{