diff --git a/.gitignore b/.gitignore index 9ba470d..4e8faff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.sass-cache \ No newline at end of file +.sass-cache +node_modules diff --git a/Makefile b/Makefile index 47f0da3..0bab810 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ STATICDIR = static CSSDIR = $(DISTDIR)/css SCSSDIR = $(SRCDIR)/scss SCSSINCDIR = $(SCSSDIR)/includes -JSDIR = js SCSSFILES = $(wildcard $(SCSSDIR)/*.scss) CSSFILES = $(patsubst $(SCSSDIR)/%.scss, $(CSSDIR)/%.css, $(SCSSFILES)) @@ -16,9 +15,6 @@ TMPL = $(SRCDIR)/tmpl.html STATICFILES = $(shell find $(STATICDIR) -type f -name '*') STATICOUT = $(patsubst $(STATICDIR)/%, $(DISTDIR)/%, $(STATICFILES)) -JSFILES = $(shell find $(JSDIR) -type f -name '*.js') -MINIFIEDFILES := $(patsubst $(JSDIR)/%.js, $(DISTDIR)/%.min.js, $(JSFILES)) - URI = "https://bear.oops.wtf" .PHONY: all @@ -41,10 +37,8 @@ $(DISTDIR)/%.html: $(SRCDIR)/%.md $(TMPL) -o $@ $< .PHONY: js -js: $(MINIFIEDFILES) - -$(DISTDIR)/%.min.js: $(JSDIR)/%.js - uglifyjs $< -m -c --mangle-props -o $@ +js: + pnpm exec webpack .PHONY: css css: $(CSSFILES) diff --git a/README.md b/README.md new file mode 100644 index 0000000..fa32788 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# 🚀 Welcome to your new awesome project! + +This project has been created using **webpack-cli**, you can now run + +``` +npm run build +``` + +or + +``` +yarn build +``` + +to bundle your application diff --git a/dist/blog/index.html b/dist/blog/index.html index d374cc2..6ce9b45 100644 --- a/dist/blog/index.html +++ b/dist/blog/index.html @@ -37,9 +37,7 @@ JavaScript must be enabled for the blog index to work. Otherwise visit blogindex.txt for a plaintext list.
+ href="blogIndex.min.js">