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 vendor
node_modules node_modules
.php_cs.cache .php_cs.cache
public/bundle.js public/generated
*.map

View File

@@ -36,7 +36,7 @@ function startOpenAnimation() {
} }
function loadFont() { 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 font = new THREE.Font(data);
let geometry = new THREE.TextGeometry('Ja!', { let geometry = new THREE.TextGeometry('Ja!', {
font: font, font: font,

View File

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

View File

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

View File

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