// dahlia.config.js
module.exports = {
webpack(config, env) {
return {
...config,
// to custom origin config
}
},
}
// dahlia.config.js
module.exports = {
webpack(config, env) {
const newConfig = {
...config,
// 自定义 webpack publicPath
publicPath: 'http://0.0.0.0',
}
return newConfig
},
}
yarn add dahlia-webpack-override
yarn add dahlia-webpack-less
// dahlia.config.js
const override = require('dahlia-webpack-override')
const less = require('dahlia-webpack-less')
module.exports = {
webpack(config, env) {
const newConfig = override(config, env).pipe(less())
return newConfig
},
}
const override = require('dahlia-webpack-override')
const antd = require('dahlia-webpack-antd')
const less = require('dahlia-webpack-less')
module.exports = {
webpack(config, env) {
const newConfig = override(config, env).pipe(
less({
modifyVars: {
'primary-color': 'black',
'link-color': '#1DA57A',
'border-radius-base': '10px',
},
javascriptEnabled: true,
}),
antd({
style: true,
}),
)
return newConfig
},
}
const myOperator = (options?: any) => config => {
const newConfig = {
...config,
// to customize
}
return newConfig
}
export default myOperator