Skip to content

Commit

Permalink
update build targets for css and js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Gardner committed Jan 9, 2023
1 parent 56a8668 commit 76ba446
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ async function imageShortcode(
module.exports = function(eleventyConfig) {
// Copy the `img` and `css` folders to the output
eleventyConfig.addPassthroughCopy("img");
eleventyConfig.addPassthroughCopy("css");

// Add plugins
eleventyConfig.addPlugin(pluginSyntaxHighlight);
eleventyConfig.addPlugin(pluginNavigation);

eleventyConfig.addWatchTarget("./css");

// Alias `layout: article` to `layout: layouts/post.njk`
eleventyConfig.addLayoutAlias("article", "layouts/article.njk");

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"scripts": {
"build": "npm-run-all clean-build build:ts build:11ty -p minify:* build:css",
"build:css": "postcss src/css/app.css -o css/global.css",
"build:css": "postcss src/css/app.css -o _site/css/global.css",
"build:11ty": "eleventy",
"build:ts": "spack",
"clean-build": "rimraf build",
Expand Down
2 changes: 1 addition & 1 deletion spack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = config({
},

output: {
path: path.join(__dirname, "js"),
path: path.join(__dirname, "_site/js"),
name: "main.js",
},

Expand Down
2 changes: 1 addition & 1 deletion src/css/components/meta.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
text-decoration: none;
}

.post-tags__item:has(.post-tag):hover {
.post-tags__item:hover {
background-color: var(--gray-4);
}

0 comments on commit 76ba446

Please sign in to comment.