mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-07-13 21:00:37 -04:00
Restaurant project (#9)
* feat: git ignore * feat: skeleton * feat: module added * feat: added menubar * adding components * feat: carousel and components * feat: content added * feat: navbar logic added * feat: added styling * feat; add bg image * feat: styling complete * feat: first build complete
This commit is contained in:
parent
21e059e84d
commit
e46e56578d
31 changed files with 6028 additions and 0 deletions
40
restaurant/app/webpack.config.js
Normal file
40
restaurant/app/webpack.config.js
Normal file
|
@ -0,0 +1,40 @@
|
|||
const path = require('path');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: {
|
||||
index: './src/index.js',
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
title: 'Restaurant - Dev',
|
||||
}),
|
||||
],
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
clean: true,
|
||||
},
|
||||
devtool: 'inline-source-map',
|
||||
devServer: {
|
||||
static: './dist',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/i,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.(png|svg|jpg|jpeg|gif)$/i,
|
||||
type: 'asset/resource',
|
||||
},
|
||||
{
|
||||
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
||||
type: 'asset/resource',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue