@tmbr/bundler 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +7 -2
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -34,7 +34,7 @@ const logger = (options = {}) => ({
34
34
 
35
35
  if (result.warnings.length || result.errors.length) {
36
36
  console.log('\x07');
37
- return
37
+ return;
38
38
  }
39
39
 
40
40
  const css = `${path}/${slug}.css`;
@@ -59,6 +59,11 @@ const buildOptions = {
59
59
  sourcemap: false,
60
60
  treeShaking: true,
61
61
  legalComments: 'none',
62
+ loader: {
63
+ '.glsl': 'text',
64
+ '.vert': 'text',
65
+ '.frag': 'text',
66
+ },
62
67
  plugins: [
63
68
  styles({sourceMap: false, logger: sass.Logger.silent}),
64
69
  logger()
@@ -77,7 +82,7 @@ const watchOptions = Object.assign({}, buildOptions, {
77
82
 
78
83
  const serveOptions = {
79
84
  proxy: `${process.env.npm_package_name}.test`,
80
- files: ['assets/**', 'build/*', '**/*.php'],
85
+ files: ['assets/**', 'build/*', '**/*.php', '**/*.html'],
81
86
  host: 'localhost',
82
87
  open: false,
83
88
  notify: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tmbr/bundler",
3
3
  "type": "module",
4
- "version": "1.11.0",
4
+ "version": "1.12.0",
5
5
  "repository": "github:TMBR/tmbr-bundler",
6
6
  "bin": {
7
7
  "bundler": "cli.js",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "browser-sync": "^3.0.2",
12
12
  "chalk": "^5.3.0",
13
- "esbuild": "^0.19.11",
14
- "esbuild-sass-plugin": "^2.16.1"
13
+ "esbuild": "^0.20.1",
14
+ "esbuild-sass-plugin": "^3.1.0"
15
15
  }
16
16
  }