Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-mall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-mall
Commits
7b07604f
Commit
7b07604f
authored
Nov 22, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改构建配置,添加文件hash后缀,解决缓存问题
parent
dca9d4cf
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
347 additions
and
117 deletions
+347
-117
.gitignore
apps/b2b/.gitignore
+3
-1
webpack.config.base.js
apps/b2b/build/webpack.config.base.js
+3
-2
config.ssr.js
apps/b2b/config/config.ssr.js
+17
-7
asset-manifest.json
apps/b2b/output/asset-manifest.json
+11
-0
package.json
apps/b2b/package.json
+1
-1
index.tsx
apps/b2b/web/components/TopBar/index.tsx
+3
-3
index.ts
apps/b2b/web/store/siteStore/index.ts
+4
-6
.gitignore
apps/channel/.gitignore
+3
-1
webpack.config.base.js
apps/channel/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/channel/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/channel/config/config.ssr.js
+26
-8
asset-manifest.json
apps/channel/output/asset-manifest.json
+9
-0
.gitignore
apps/info/.gitignore
+3
-1
webpack.config.base.js
apps/info/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/info/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/info/config/config.ssr.js
+25
-8
asset-manifest.json
apps/info/output/asset-manifest.json
+8
-0
.gitignore
apps/logistics/.gitignore
+3
-1
webpack.config.base.js
apps/logistics/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/logistics/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/logistics/config/config.ssr.js
+25
-8
asset-manifest.json
apps/logistics/output/asset-manifest.json
+11
-0
.gitignore
apps/manufacture/.gitignore
+3
-1
webpack.config.base.js
apps/manufacture/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/manufacture/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/manufacture/config/config.ssr.js
+24
-8
asset-manifest.json
apps/manufacture/output/asset-manifest.json
+11
-0
.gitignore
apps/platform/.gitignore
+3
-1
webpack.config.base.js
apps/platform/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/platform/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/platform/config/config.ssr.js
+25
-8
asset-manifest.json
apps/platform/output/asset-manifest.json
+11
-0
.gitignore
apps/self/.gitignore
+3
-1
webpack.config.base.js
apps/self/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/self/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/self/config/config.ssr.js
+25
-8
asset-manifest.json
apps/self/output/asset-manifest.json
+9
-0
index.ts
apps/self/web/store/siteStore/index.ts
+4
-6
.gitignore
apps/srm/.gitignore
+3
-1
webpack.config.base.js
apps/srm/build/webpack.config.base.js
+3
-2
webpack.config.client.js
apps/srm/build/webpack.config.client.js
+2
-2
config.ssr.js
apps/srm/config/config.ssr.js
+25
-8
asset-manifest.json
apps/srm/output/asset-manifest.json
+11
-0
No files found.
apps/b2b/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/b2b/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/b2b/config/config.ssr.js
View file @
7b07604f
...
...
@@ -3,12 +3,26 @@ const isDev = process.env.NODE_ENV === 'development'
const
routes
=
require
(
'./routes'
)
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
.
push
(
[
injectCss
=
[
`/static/css/Page.chunk.css`
])
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
...
...
@@ -16,11 +30,7 @@ module.exports = {
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
,
// 客户端需要加载的静态样式表
injectScript
:
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/b2b/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.6a8ddd.chunk.css"
,
"Page.js"
:
"/static/js/Page.6a8ddd.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.6a8ddd.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.6a8ddd.js"
,
"static/media/index.less"
:
"/static/media/company_info_bg.13f09ad9.png"
,
"static/media/default_ad_img.png"
:
"/static/media/default_ad_img.f4b27ac5.png"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
,
"static/media/illus.png"
:
"/static/media/illus.574d91d1.png"
}
\ No newline at end of file
apps/b2b/package.json
View file @
7b07604f
...
...
@@ -94,7 +94,7 @@
"start"
:
"yarn getLocale && concurrently
\"
npm run ssr
\"
\"
npm run csr
\"
"
,
"ssr"
:
"concurrently
\"
cross-env app=b2b NODE_ENV=development midway-bin dev --ts --entryFile=bootstrap.js
\"
\"
cross-env NODE_ENV=development webpack --watch --config ./build/webpack.config.server.js
\"
"
,
"csr"
:
"cross-env app=b2b NODE_ENV=development FE_PORT=6012 ykcli dev"
,
"build"
:
"midway-bin build -c && npm run build:
clean && npm run build:
ssr && npm run build:csr"
,
"build"
:
"midway-bin build -c && npm run build:ssr && npm run build:csr"
,
"build:ssr"
:
"cross-env app=b2b NODE_ENV=production webpack --config ./build/webpack.config.server.js"
,
"build:csr"
:
"cross-env app=b2b NODE_ENV=production ykcli build"
,
"check"
:
"luckyeye"
,
...
...
apps/b2b/web/components/TopBar/index.tsx
View file @
7b07604f
...
...
@@ -107,7 +107,7 @@ const TopBar: SFC<TopBarPropsType> = (props) => {
// 根据接口配置 跳转lx-IM或者七鱼IM,并传入初始秘钥 1 //自有 2 //第三方
const
_self
=
GlobalConfig
?.
global
?.
imConfig
?
GlobalConfig
.
global
.
imConfig
.
type
:
null
useEffect
(()
=>
{
if
(
_self
===
2
)
{
if
(
_self
===
2
)
{
// 接入第三方
const
s
=
GlobalConfig
?.
global
?.
imConfig
?.
paramConfigList
[
0
][
'value'
]
const
_window
:
any
=
window
...
...
@@ -123,9 +123,9 @@ const TopBar: SFC<TopBarPropsType> = (props) => {
const
jumpChatRoom
=
()
=>
{
if
(
userInfo
)
{
if
(
_self
===
1
)
{
if
(
_self
===
1
)
{
toChatRoom
(
memberId
,
mallInfo
.
type
)
}
else
if
(
_self
===
2
)
{
}
else
if
(
_self
===
2
)
{
openqiyuIMServer
(
userInfo
);
}
}
else
{
...
...
apps/b2b/web/store/siteStore/index.ts
View file @
7b07604f
...
...
@@ -73,12 +73,10 @@ class SiteStore implements SiteStoreModal {
]
try
{
const
res
=
await
getTemplateAdornWebEnterpriseFindColumn
(
param
)
if
(
res
.
code
===
1000
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
this
.
navList
=
res
.
data
}
else
{
this
.
navList
=
defaultNavList
}
if
(
res
.
code
===
1000
&&
res
.
data
&&
res
.
data
.
length
>
0
)
{
this
.
navList
=
res
.
data
}
else
{
this
.
navList
=
defaultNavList
}
this
.
navLoading
=
false
}
catch
(
error
)
{
...
...
apps/channel/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/channel/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/channel/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/channel/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
routes
=
require
(
'./routes'
)
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
,
// 客户端需要加载的静态样式表
injectScript
:
[
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/channel/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.chunk.css"
,
"Page.js"
:
"/static/js/Page.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.js"
,
"static/media/index.less"
:
"/static/media/company_info_bg.13f09ad9.png"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
}
\ No newline at end of file
apps/info/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/info/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/info/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/info/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
[
...
...
@@ -40,14 +63,8 @@ module.exports = {
}
],
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
`/static/css/Page.chunk.css`
],
// 客户端需要加载的静态样式表
injectScript
:
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/info/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.chunk.css"
,
"Page.js"
:
"/static/js/Page.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.js"
,
"static/media/1.png"
:
"/static/media/1.90304721.png"
}
\ No newline at end of file
apps/logistics/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/logistics/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/logistics/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/logistics/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
[
...
...
@@ -26,14 +49,8 @@ module.exports = {
}
],
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
`/static/css/Page.chunk.css`
],
// 客户端需要加载的静态样式表
injectScript
:
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/logistics/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.6a8ddd.chunk.css"
,
"Page.js"
:
"/static/js/Page.6a8ddd.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.6a8ddd.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.6a8ddd.js"
,
"static/media/index.less"
:
"/static/media/company_info_bg.13f09ad9.png"
,
"static/media/default_ad_img.png"
:
"/static/media/default_ad_img.f4b27ac5.png"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
,
"static/media/illus.png"
:
"/static/media/illus.574d91d1.png"
}
\ No newline at end of file
apps/manufacture/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/manufacture/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/manufacture/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/manufacture/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
...
...
@@ -26,14 +48,8 @@ module.exports = {
}
],
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
`/static/css/Page.chunk.css`
],
// 客户端需要加载的静态样式表
injectScript
:
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/manufacture/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.6a8ddd.chunk.css"
,
"Page.js"
:
"/static/js/Page.6a8ddd.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.6a8ddd.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.6a8ddd.js"
,
"static/media/index.less"
:
"/static/media/company_info_bg.13f09ad9.png"
,
"static/media/default_ad_img.png"
:
"/static/media/default_ad_img.f4b27ac5.png"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
,
"static/media/illus.png"
:
"/static/media/illus.574d91d1.png"
}
\ No newline at end of file
apps/platform/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/platform/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/platform/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/platform/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
const
routes
=
require
(
'./routes'
)
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
,
// 客户端需要加载的静态样式表
injectScript
:
[
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/platform/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.6a8ddd.chunk.css"
,
"Page.js"
:
"/static/js/Page.6a8ddd.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.6a8ddd.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.6a8ddd.js"
,
"static/media/index.less"
:
"/static/media/company_info_bg.13f09ad9.png"
,
"static/media/default_ad_img.png"
:
"/static/media/default_ad_img.f4b27ac5.png"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
,
"static/media/illus.png"
:
"/static/media/illus.574d91d1.png"
}
\ No newline at end of file
apps/self/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/self/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/self/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/self/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
const
routes
=
require
(
'./routes'
)
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
,
// 客户端需要加载的静态样式表
injectScript
:
[
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/self/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.chunk.css"
,
"Page.js"
:
"/static/js/Page.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.js"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
,
"static/media/illus.png"
:
"/static/media/illus.574d91d1.png"
}
\ No newline at end of file
apps/self/web/store/siteStore/index.ts
View file @
7b07604f
...
...
@@ -73,12 +73,10 @@ class SiteStore implements SiteStoreModal {
]
try
{
const
res
=
await
getTemplateAdornWebSelfFindColumn
(
param
)
if
(
res
.
code
===
1000
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
this
.
navList
=
res
.
data
}
else
{
this
.
navList
=
defaultNavList
}
if
(
res
.
code
===
1000
&&
res
.
data
&&
res
.
data
.
length
>
0
)
{
this
.
navList
=
res
.
data
}
else
{
this
.
navList
=
defaultNavList
}
this
.
navLoading
=
false
}
catch
(
error
)
{
...
...
apps/srm/.gitignore
View file @
7b07604f
logs/
output/
output/static
output/Layout.server.js
output/Page.server.js
npm-debug.log
yarn-error.log
node_modules/
...
...
apps/srm/build/webpack.config.base.js
View file @
7b07604f
...
...
@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const
getCSSModuleLocalIdent
=
require
(
'react-dev-utils/getCSSModuleLocalIdent'
)
const
getStyleLoaders
=
require
(
'./util'
).
getStyleLoaders
const
themeVariables
=
require
(
'./lingxi.theme.config'
)
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
const
webpackModule
=
{
strictExportPresence
:
true
,
...
...
@@ -133,8 +134,8 @@ module.exports = {
module
:
webpackModule
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'static/css/[name
].css'
,
chunkFilename
:
'static/css/[name
].chunk.css'
filename
:
isDev
?
'static/css/[name].css'
:
'static/css/[name].[hash:6
].css'
,
chunkFilename
:
isDev
?
'static/css/[name].chunk.css'
:
'static/css/[name].[hash:6
].chunk.css'
}),
],
performance
:
false
...
...
apps/srm/build/webpack.config.client.js
View file @
7b07604f
...
...
@@ -109,8 +109,8 @@ module.exports = merge(baseConfig, {
output
:
{
path
:
paths
.
appBuild
,
pathinfo
:
true
,
filename
:
'static/js/[name
].js'
,
chunkFilename
:
'static/js/[name
].chunk.js'
,
filename
:
isDev
?
'static/js/[name].js'
:
'static/js/[name].[hash:6
].js'
,
chunkFilename
:
isDev
?
'static/js/[name].chunk.js'
:
'static/js/[name].[hash:6
].chunk.js'
,
publicPath
:
publicPath
,
hotUpdateChunkFilename
:
'[hash].hot-update.js'
,
devtoolModuleFilenameTemplate
:
info
=>
...
...
apps/srm/config/config.ssr.js
View file @
7b07604f
const
resolvePath
=
(
path
)
=>
require
(
'path'
).
resolve
(
__dirname
,
path
)
const
routes
=
require
(
'./routes'
)
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
:
[
let
injectCss
=
[]
let
injectScript
=
[]
if
(
isDev
)
{
injectCss
=
[
`/static/css/Page.chunk.css`
]
,
// 客户端需要加载的静态样式表
injectScript
:
[
]
injectScript
=
[
`<script src='/static/js/runtime~Page.js'></script>`
,
`<script src='/static/js/vendor.chunk.js'></script>`
,
`<script src='/static/js/Page.chunk.js'></script>`
],
// 客户端需要加载的静态资源文件表
]
}
else
{
const
assetManifest
=
require
(
'../output/asset-manifest.json'
)
injectCss
=
[
assetManifest
[
'Page.css'
]
]
injectScript
=
[
`<script src=
${
assetManifest
[
'runtime~Page.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'vendor.js'
]}
></script>`
,
`<script src=
${
assetManifest
[
'Page.js'
]}
></script>`
]
}
module
.
exports
=
{
type
:
'ssr'
,
// 指定运行类型可设置为csr切换为客户端渲染
routes
:
routes
,
baseDir
:
resolvePath
(
'../../../'
),
injectCss
,
// 客户端需要加载的静态样式表
injectScript
,
// 客户端需要加载的静态资源文件表
serverJs
:
resolvePath
(
`../output/Page.server.js`
),
layout
:
resolvePath
(
`../output/Layout.server.js`
),
useCDN
:
false
...
...
apps/srm/output/asset-manifest.json
0 → 100644
View file @
7b07604f
{
"Page.css"
:
"/static/css/Page.6a8ddd.chunk.css"
,
"Page.js"
:
"/static/js/Page.6a8ddd.chunk.js"
,
"vendor.js"
:
"/static/js/vendor.6a8ddd.chunk.js"
,
"runtime~Page.js"
:
"/static/js/runtime~Page.6a8ddd.js"
,
"static/media/index.less"
:
"/static/media/company_info_bg.13f09ad9.png"
,
"static/media/default_ad_img.png"
:
"/static/media/default_ad_img.f4b27ac5.png"
,
"static/media/pay_success.png"
:
"/static/media/pay_success.58ee44a7.png"
,
"static/media/illus.png"
:
"/static/media/illus.574d91d1.png"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment