File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
2
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
3
3
const autoprefixer = require ( 'autoprefixer' )
4
- // const CopyWebpackPlugin = require('copy-webpack-plugin')
4
+ const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
5
5
6
- // const conf = require('./conf')
6
+ const conf = require ( './conf' )
7
7
const { getProjectRoot } = require ( './util' )
8
8
9
9
const projectRoot = getProjectRoot ( )
@@ -121,13 +121,13 @@ module.exports = {
121
121
plugins : [
122
122
new HtmlWebpackPlugin ( {
123
123
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
+ ] )
132
132
]
133
133
}
Original file line number Diff line number Diff line change
1
+ taro-ui.aotu.io
You can’t perform that action at this time.
0 commit comments