Skip to content

Commit

Permalink
Merge pull request #7142 from birkskyum/add-style-plugin
Browse files Browse the repository at this point in the history
Add .css loader to esbuild
  • Loading branch information
archmoj authored Sep 7, 2024
2 parents 48ed832 + 6275c72 commit 3328875
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 72 deletions.
2 changes: 2 additions & 0 deletions esbuild-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var glsl = require('esbuild-plugin-glsl').glsl;
var environmentPlugin = require('esbuild-plugin-environment').environmentPlugin;
const stylePlugin = require('esbuild-style-plugin');

module.exports = {
entryPoints: ['./lib/index.js'],
Expand All @@ -9,6 +10,7 @@ module.exports = {
minify: false,
sourcemap: false,
plugins: [
stylePlugin(),
glsl({
minify: true,
}),
Expand Down
Loading

0 comments on commit 3328875

Please sign in to comment.