Adding in fixes for Webpack build

This commit is contained in:
Frank Delaguila
2022-03-12 18:55:57 -07:00
parent 7f7415e48e
commit d8beede420
3 changed files with 15 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
"@babel/preset-react": "^7.16.7", "@babel/preset-react": "^7.16.7",
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
"clean-webpack-plugin": "^4.0.0", "clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^3.4.1", "css-minimizer-webpack-plugin": "^3.4.1",
"express": "^4.17.3", "express": "^4.17.3",
"html-critical-webpack-plugin": "^2.1.0", "html-critical-webpack-plugin": "^2.1.0",
@@ -24,6 +25,8 @@
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"image-minimizer-webpack-plugin": "^3.2.3", "image-minimizer-webpack-plugin": "^3.2.3",
"mini-css-extract-plugin": "^2.6.0", "mini-css-extract-plugin": "^2.6.0",
"postcss-loader": "^6.2.1",
"resolve-url-loader": "^5.0.0",
"sass": "^1.49.9", "sass": "^1.49.9",
"sass-loader": "^12.6.0", "sass-loader": "^12.6.0",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",

View File

@@ -27,12 +27,17 @@ const Box = (props) => {
const App = () => { const App = () => {
return ( return (
<>
<nav>
nav
</nav>
<Canvas> <Canvas>
<ambientLight /> <ambientLight />
<pointLight position={[10, 10, 10]} /> <pointLight position={[10, 10, 10]} />
<Box position={[-1.2, 0, 0]} /> <Box position={[-1.2, 0, 0]} />
<Box position={[1.2, 0, 0]} /> <Box position={[1.2, 0, 0]} />
</Canvas> </Canvas>
</>
); );
}; };

View File

@@ -10,7 +10,7 @@ const ImageMinimizerPlugin = require('image-minimizer-webpack-plugin');
module.exports = merge(commonConfiguration, { module.exports = merge(commonConfiguration, {
mode: 'production', mode: 'production',
entry: { entry: {
popshop: path.resolve(__dirname, './src/scripts/app.js'), portfolio: path.resolve(__dirname, './src/scripts/app.js'),
}, },
devtool: 'source-map', devtool: 'source-map',
output: { output: {