Skip to content

Commit

Permalink
chore: update local dev config
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
imfing committed Aug 31, 2023
1 parent b709452 commit ed14cf0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 37 deletions.
30 changes: 0 additions & 30 deletions config.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions dev.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Theme development config for exampleSite
# https://gohugo.io/getting-started/configuration/#configure-cache-busters
[build]
[build.buildStats]
enable = true
disableIDs = true
[[build.cachebusters]]
source = 'assets/watching/hugo_stats\.json'
target = 'styles\.css'
[[build.cachebusters]]
source = '(postcss|tailwind)\.config\.js'
target = 'css'
[[build.cachebusters]]
source = 'assets/.*\.(js|ts|jsx|tsx)'
target = 'js'
[[build.cachebusters]]
source = 'assets/.*\.(.*)$'
target = '$1'

[module]
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"dev:theme": "hugo server --logLevel debug --environment=theme --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313",
"dev:theme": "hugo server --logLevel=debug --config=hugo.yaml,../dev.toml --environment=theme --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313",
"dev": "hugo server --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313",
"build:css": "npx postcss --config postcss.config.js --env production assets/css/styles.css -o assets/css/compiled/main.css",
"build": "hugo --gc --minify --themesDir=../.. --source=exampleSite"
Expand Down
12 changes: 6 additions & 6 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const tailwind = require('tailwindcss')(tailwindConfig);
const autoprefixer = require('autoprefixer');

module.exports = {
plugins: [
require('postcss-import'),
require('@tailwindcss/nesting'),
tailwind,
autoprefixer
],
plugins: [
require('postcss-import'),
require('@tailwindcss/nesting'),
tailwind,
autoprefixer
],
};

0 comments on commit ed14cf0

Please sign in to comment.