1、Q/ZZ改回X/XX(原本福田就是X/XX); 2、封面右上角的X/XX位置改为从标准号中截取,截取逻辑在主系统处理; 3、添加从流程中获取数据生成封面、页眉页脚的功能; 4、目录样式更新的判断加了一个判断条件。
56 lines
1.3 KiB
JavaScript
56 lines
1.3 KiB
JavaScript
/* eslint-disable import/extensions */
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
|
|
const path = require('path')
|
|
|
|
const pageMethod = require('./utils/getPages.js')
|
|
|
|
const pages = pageMethod.pages()
|
|
const configs = pageMethod.configs()
|
|
|
|
// const { interfaceUrl } = require('./src/config')
|
|
function resolve (dir) {
|
|
return path.join(__dirname, dir)
|
|
}
|
|
|
|
module.exports = {
|
|
pages,
|
|
publicPath: '/',
|
|
outputDir:"onlyofficeplugins", //设置打包后的项目目录名称
|
|
configureWebpack: {
|
|
plugins: [
|
|
new CopyWebpackPlugin(configs)
|
|
]
|
|
},
|
|
css: {
|
|
loaderOptions: {
|
|
less: {
|
|
javascriptEnabled: true, // old solution
|
|
// HERE is the difference!
|
|
lessOptions: {
|
|
javascriptEnabled: true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
chainWebpack: (config) => {
|
|
config.resolve.alias
|
|
.set('@', resolve('./src'))
|
|
.set('@/common', resolve('@/common'))
|
|
},
|
|
devServer: {
|
|
port: 8082,
|
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
|
proxy: {
|
|
'/laws-sinotruk': {
|
|
target: 'http://139.9.235.66:8184',
|
|
ws: false,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
// '/laws-sinotruk': '' // 默认所有请求都加了jero-boot前缀,需要去掉
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|