mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Use API instead of CLI
This commit is contained in:
parent
b17e373460
commit
9ac75edbcc
13
extension/build.mjs
Normal file
13
extension/build.mjs
Normal file
|
@ -0,0 +1,13 @@
|
|||
import * as esbuild from 'esbuild';
|
||||
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/window/index.tsx'],
|
||||
bundle: true,
|
||||
minify: true,
|
||||
outfile: 'dist/window.bundle.js',
|
||||
loader: {
|
||||
'.pug': 'empty',
|
||||
'.woff2': 'file',
|
||||
},
|
||||
logLevel: 'info',
|
||||
});
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "webpack --env development --watch",
|
||||
"build:esbuild": "esbuild src/window/index.tsx --bundle --minify --outfile=dist/window.bundle.js --loader:.pug=empty --loader:.woff2=file",
|
||||
"build:esbuild": "node build.mjs",
|
||||
"build": "pnpm run build:extension && pnpm run build:chrome && pnpm run build:edge && pnpm run build:firefox",
|
||||
"build:extension": "webpack --env production && webpack --config wrap.webpack.config.js",
|
||||
"build:chrome": "cpy . ../../chrome/dist --cwd dist && cpy manifest.json ../dist --cwd chrome",
|
||||
|
|
Loading…
Reference in New Issue
Block a user