Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions esbuild-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var glsl = require('esbuild-plugin-glsl').glsl;
var environmentPlugin = require('esbuild-plugin-environment').environmentPlugin;
const stylePlugin = require('esbuild-style-plugin');
const InlineCSSPlugin = require('esbuild-plugin-inline-css');

module.exports = {
entryPoints: ['./lib/index.js'],
Expand All @@ -10,7 +10,7 @@ module.exports = {
minify: false,
sourcemap: false,
plugins: [
stylePlugin(),
InlineCSSPlugin(),
glsl({
minify: true,
}),
Expand Down
149 changes: 64 additions & 85 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"esbuild-plugin-browserify-adapter": "^0.1.4",
"esbuild-plugin-environment": "^0.4.0",
"esbuild-plugin-glsl": "^1.2.2",
"esbuild-style-plugin": "^1.6.3",
"esbuild-plugin-inline-css": "^0.0.1",
"extra-iterable": "^2.5.22",
"falafel": "^2.2.5",
"fs-extra": "^10.1.0",
Expand Down
10 changes: 0 additions & 10 deletions tasks/util/bundle_wrapper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {

addWrapper(pathToBundle);

if(pathToBundle.endsWith('.js')) {
var len = pathToBundle.length;
var cssOutput = pathToBundle.slice(0, len - 3) + '.css';

// remove unwanted css file
if (fs.existsSync(cssOutput)) {
fs.unlinkSync(cssOutput);
}
}

if(cb) cb();
}

Expand Down