Skip to content
Snippets Groups Projects
Verified Commit 924fb5f0 authored by Louis's avatar Louis :fire:
Browse files

Simplify project layout

parent d0bdc27e
No related branches found
No related tags found
No related merge requests found
Pipeline #714 passed with stage
in 15 seconds
This diff is collapsed.
{
"name": "SnailRace",
"version": "0.0.1",
"description": "Snails are your friends and help you make decisions",
"private": true,
"keywords": [
""
],
"license": "",
"author": "Louis Cpaitanchik <contact@louiscap.co>",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack serve --open --config webpack.config.dev.js",
"build": "webpack --config webpack.config.prod.js",
"fmt": "prettier -w \"**/*.{html,js,css,json,webmanifest}\""
},
"devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"css-minimizer-webpack-plugin": "^7.0.0",
"html-webpack-plugin": "^5.6.0",
"prettier": "^3.4.2",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-merge": "^5.10.0"
}
}
module.exports = {}
const { merge } = require("webpack-merge")
const common = require("./webpack.common.js")
module.exports = merge(common, {
mode: "development",
devtool: "inline-source-map",
devServer: {
liveReload: true,
hot: true,
open: true,
static: ["./"],
},
})
const { merge } = require("webpack-merge")
const common = require("./webpack.common.js")
const HtmlWebpackPlugin = require("html-webpack-plugin")
const CopyPlugin = require("copy-webpack-plugin")
module.exports = merge(common, {
mode: "production",
plugins: [
new HtmlWebpackPlugin({
template: "./index.html",
}),
new CopyPlugin({
patterns: [
{ from: "static", to: "static" },
{ from: "css", to: "css" },
{ from: "js", to: "js" },
{ from: "icon.svg", to: "icon.svg" },
{ from: "favicon.ico", to: "favicon.ico" },
{ from: "robots.txt", to: "robots.txt" },
{ from: "icon.png", to: "icon.png" },
{ from: "site.webmanifest", to: "site.webmanifest" },
],
}),
],
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment