Hello, thank you for all your work on Sage so far.
I’ve got a foundation project with SCSS that I upgraded from Mix. When I run bud dev it seems very slow to compile (Usually around 22s).
It also doesn’t refresh the css even though it is connected and I am on the server URL. It refreshes blade and PHP files fine.
Here is my bud file and package.json. If you need any more please let me know. Thanks!
/**
* @typedef {import('@roots/bud').Bud} bud
*
* @param {bud} app
*/
module.exports = async (app) => {
app
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app', '@styles/app'],
editor: ['@scripts/editor.js'],
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets(['images'], ['fonts'])
/**
* These files will trigger a full page reload
* when modified.
*/
.watch([
'resources/views/**/*',
'app/**/*'
])
/**
* Target URL to be proxied by the dev server.
*
* This is your local dev server.
*/
.proxy('http://site.test')
/**
* Development URL
*/
.serve('http://site.test:3000');
};
{
"name": "sage",
"private": true,
"browserslist": [
"extends @wordpress/browserslist-config"
],
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"dev": "bud dev",
"build": "bud build",
"translate": "npm run translate:pot && npm run translate:js",
"translate:pot": "wp i18n make-pot . ./resources/lang/sage.pot --ignore-domain --include=\"app,resources\"",
"translate:js": "wp i18n make-json ./resources/lang --pretty-print"
},
"devDependencies": {
"@roots/bud": "5.6.2",
"@roots/bud-eslint": "5.6.2",
"@roots/bud-postcss": "5.6.2",
"@roots/bud-prettier": "5.6.2",
"@roots/bud-sass": "5.6.2",
"@roots/bud-stylelint": "5.6.2",
"@roots/bud-tailwindcss": "5.6.2",
"@roots/eslint-config": "5.6.2",
"@roots/sage": "5.6.2"
},
"dependencies": {
"foundation-sites": "^6.6.3",
"is-in-viewport": "^3.0.4",
"jquery": "^3.5.1",
"swiper": "^8.0.3"
}
}