diff --git a/.gitignore b/.gitignore index d92dc0f..540555a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ vendor node_modules .php_cs.cache -public/bundle.js -*.map +public/generated diff --git a/src/open.js b/src/open.js index ba4d421..40b111e 100644 --- a/src/open.js +++ b/src/open.js @@ -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, diff --git a/templates/closed.html b/templates/closed.html index 30a9063..ead59b5 100644 --- a/templates/closed.html +++ b/templates/closed.html @@ -4,7 +4,7 @@ Nee... • IsDeFooBarOpen.nl - +
diff --git a/templates/open.html b/templates/open.html index b541ad0..96f5345 100644 --- a/templates/open.html +++ b/templates/open.html @@ -4,7 +4,7 @@ JA! • IsDeFooBarOpen.nl - + diff --git a/webpack.config.js b/webpack.config.js index 6ef7ebf..2ad4903 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: [{