-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change css to scss, add textdomain support
- Loading branch information
Showing
5 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
import { defineConfig } from 'vite' | ||
import laravel from 'laravel-vite-plugin' | ||
import { defineConfig } from 'vite'; | ||
import laravel from 'laravel-vite-plugin'; | ||
import { | ||
wordpressPlugin, | ||
wordpressRollupPlugin, | ||
wordpressThemeJson, | ||
} from './resources/js/build/wordpress' | ||
import tailwindConfig from './tailwind.config.js' | ||
} from './resources/js/build/wordpress'; | ||
import tailwindConfig from './tailwind.config.js'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
laravel({ | ||
input: [ | ||
'resources/css/app.css', | ||
'resources/js/app.js', | ||
'resources/css/editor.css', | ||
'resources/js/editor.js', | ||
'resources/styles/app.scss', | ||
'resources/styles/editor.scss', | ||
], | ||
refresh: true, | ||
}), | ||
|
||
wordpressPlugin(), | ||
wordpressRollupPlugin(), | ||
|
||
// Generate the theme.json file in the public/build/assets directory | ||
// based on the Tailwind config and the theme.json file from base theme folder | ||
wordpressThemeJson({ | ||
tailwindConfig, | ||
disableTailwindColors: false, | ||
disableTailwindFonts: false, | ||
disableTailwindFontSizes: false, | ||
}), | ||
], | ||
}) | ||
css: { | ||
preprocessorOptions: { | ||
scss: { | ||
additionalData: `@use "settings/_variables.scss";`, | ||
}, | ||
}, | ||
}, | ||
}); |