Skip to content

Commit acfe777

Browse files
committed
chore: add CNAME to docs build config
1 parent 74eebc7 commit acfe777

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

packages/taro-ui-docs/build/webpack.base.config.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const path = require('path')
22
const HtmlWebpackPlugin = require('html-webpack-plugin')
33
const autoprefixer = require('autoprefixer')
4-
// const CopyWebpackPlugin = require('copy-webpack-plugin')
4+
const CopyWebpackPlugin = require('copy-webpack-plugin')
55

6-
// const conf = require('./conf')
6+
const conf = require('./conf')
77
const { getProjectRoot } = require('./util')
88

99
const projectRoot = getProjectRoot()
@@ -121,13 +121,13 @@ module.exports = {
121121
plugins: [
122122
new HtmlWebpackPlugin({
123123
template: `${siteRoot}/index.html`
124-
})
125-
// copy static h5 pages
126-
// new CopyWebpackPlugin([
127-
// {
128-
// from: path.join(siteRoot, 'h5'),
129-
// to: path.resolve(projectRoot, conf.output, 'h5')
130-
// }
131-
// ])
124+
}),
125+
// copy static files
126+
new CopyWebpackPlugin([
127+
{
128+
from: path.join(siteRoot, 'static'),
129+
to: path.resolve(projectRoot, conf.output)
130+
}
131+
])
132132
]
133133
}

packages/taro-ui-docs/static/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
taro-ui.aotu.io

0 commit comments

Comments
 (0)