Skip to content

Commit

Permalink
reconfigure the build process
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
  • Loading branch information
joulev committed Jul 21, 2022
1 parent e36d8ae commit a9e137c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const nextConfig = {
},
],
webpack: (config, options) => {
if (options.isServer) import("./scripts/cacheDocs.mjs");
config.module.rules.push({
test: /\.mdx?$/,
use: [
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "mkdir -p public/v1/js && cp client/packages/ezkomment.js public/v1/js && next dev",
"prebuild": "mkdir -p public/v1/js && uglifyjs --compress --mangle --output public/v1/js/ezkomment.min.js -- client/packages/ezkomment.js",
"cache-docs": "node scripts/cacheDocs.mjs",
"dev-ezk-package": "mkdir -p public/v1/js && cp client/packages/ezkomment.js public/v1/js",
"build-ezk-package": "mkdir -p public/v1/js && uglifyjs --compress --mangle --output public/v1/js/ezkomment.min.js -- client/packages/ezkomment.js",
"dev": "yarn dev-ezk-package && yarn cache-docs && next dev",
"prebuild": "yarn build-ezk-package && yarn cache-docs",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand Down

0 comments on commit a9e137c

Please sign in to comment.