Skip to content

Commit b7189bd

Browse files
committed
Add .css loader to esbuild
1 parent 48ed832 commit b7189bd

File tree

3 files changed

+188
-73
lines changed

3 files changed

+188
-73
lines changed

esbuild-config.js

Lines changed: 3 additions & 1 deletion
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,12 +10,13 @@ module.exports = {
910
minify: false,
1011
sourcemap: false,
1112
plugins: [
13+
stylePlugin(),
1214
glsl({
1315
minify: true,
1416
}),
1517
environmentPlugin({
1618
NODE_DEBUG: false,
17-
}),
19+
})
1820
],
1921
alias: {
2022
stream: 'stream-browserify',

0 commit comments

Comments
 (0)