mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 12:35:52 +08:00
chore: integrate code-inspector-plugin (#3900)
This commit is contained in:
parent
0ec8b57825
commit
8746e48df0
@ -1,3 +1,4 @@
|
|||||||
|
const { codeInspectorPlugin } = require('code-inspector-plugin')
|
||||||
const withMDX = require('@next/mdx')({
|
const withMDX = require('@next/mdx')({
|
||||||
extension: /\.mdx?$/,
|
extension: /\.mdx?$/,
|
||||||
options: {
|
options: {
|
||||||
@ -13,6 +14,10 @@ const withMDX = require('@next/mdx')({
|
|||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
webpack: (config, { dev, isServer }) => {
|
||||||
|
config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }))
|
||||||
|
return config
|
||||||
|
},
|
||||||
productionBrowserSourceMaps: false, // enable browser source map generation during the production build
|
productionBrowserSourceMaps: false, // enable browser source map generation during the production build
|
||||||
// Configure pageExtensions to include md and mdx
|
// Configure pageExtensions to include md and mdx
|
||||||
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
"@types/sortablejs": "^1.15.1",
|
"@types/sortablejs": "^1.15.1",
|
||||||
"@types/uuid": "^9.0.8",
|
"@types/uuid": "^9.0.8",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
|
"code-inspector-plugin": "^0.13.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.36.0",
|
"eslint": "^8.36.0",
|
||||||
"eslint-config-next": "^14.0.4",
|
"eslint-config-next": "^14.0.4",
|
||||||
|
5562
web/yarn.lock
5562
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user