@imtf/profile-scripts 1.0.5 → 1.0.6
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.
- package/bin/profile-scripts.js +2 -2
- package/changelog.md +6 -0
- package/package.json +1 -1
- package/scripts/esbuild.mjs +1 -1
package/bin/profile-scripts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const spawn = require('cross-spawn')
|
|
4
3
|
const concurrently = require('concurrently')
|
|
4
|
+
const spawn = require('cross-spawn')
|
|
5
5
|
|
|
6
6
|
const args = process.argv.slice(2)
|
|
7
|
-
const scriptIndex = args.findIndex(
|
|
7
|
+
const scriptIndex = args.findIndex(x => x === 'build' || x === 'start')
|
|
8
8
|
const script = scriptIndex === -1 ? args[0] : args[scriptIndex]
|
|
9
9
|
|
|
10
10
|
const scriptPath = require.resolve(`../scripts/esbuild.mjs`)
|
package/changelog.md
CHANGED
package/package.json
CHANGED
package/scripts/esbuild.mjs
CHANGED
|
@@ -26,9 +26,9 @@ build({
|
|
|
26
26
|
minify:
|
|
27
27
|
process.env.NODE_ENV === 'production' &&
|
|
28
28
|
process.env.IMTF_MINIFY_WEBAPP !== 'false',
|
|
29
|
-
// jsx: 'transform',
|
|
30
29
|
loader: {
|
|
31
30
|
// Enable JSX in .js files too
|
|
31
|
+
'.css': 'text',
|
|
32
32
|
'.js': 'jsx',
|
|
33
33
|
// Embed fonts
|
|
34
34
|
'.eot': 'dataurl',
|