Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3328875

Browse files
authoredSep 7, 2024··
Merge pull request #7142 from birkskyum/add-style-plugin
Add .css loader to esbuild
2 parents 48ed832 + 6275c72 commit 3328875

File tree

3 files changed

+187
-72
lines changed

3 files changed

+187
-72
lines changed
 

‎esbuild-config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var glsl = require('esbuild-plugin-glsl').glsl;
22
var environmentPlugin = require('esbuild-plugin-environment').environmentPlugin;
3+
const stylePlugin = require('esbuild-style-plugin');
34

45
module.exports = {
56
entryPoints: ['./lib/index.js'],
@@ -9,6 +10,7 @@ module.exports = {
910
minify: false,
1011
sourcemap: false,
1112
plugins: [
13+
stylePlugin(),
1214
glsl({
1315
minify: true,
1416
}),

‎package-lock.json

Lines changed: 184 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"d3-interpolate": "^3.0.1",
9393
"d3-time": "^1.1.0",
9494
"d3-time-format": "^2.2.3",
95+
"esbuild-style-plugin": "^1.6.3",
9596
"fast-isnumeric": "^1.1.4",
9697
"gl-mat4": "^1.2.0",
9798
"gl-text": "^1.4.0",

0 commit comments

Comments
 (0)
Please sign in to comment.