File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
/.idea
2
2
/dist /*
3
3
/test-results /
4
+ /doc /
4
5
# Logs
5
6
logs
6
7
* .log
Original file line number Diff line number Diff line change 9
9
],
10
10
"scripts" : {
11
11
"start" : " cross-env NODE_ENV=development webpack-dev-server --config webpack.config.dev.js" ,
12
+ "doc" : " cross-env NODE_ENV=production webpack --config webpack.config.doc.js" ,
12
13
"build" : " cross-env NODE_ENV=production webpack --config webpack.config.prod.js" ,
13
14
"test" : " cross-env NODE_ENV=test jest --config=jest.config.js --runInBand" ,
14
15
"ci" : " cross-env NODE_ENV=test JEST_JUNIT_OUTPUT=./test-results/jest/results.xml jest --config=jest.config.ci.js"
Original file line number Diff line number Diff line change
1
+ const base = require ( './webpack.config' )
2
+ const path = require ( 'path' )
3
+ const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
4
+ module . exports = Object . assign ( { } , base , {
5
+ mode : 'production' ,
6
+ output : {
7
+ path : path . resolve ( __dirname , 'doc' ) ,
8
+ } ,
9
+ entry : {
10
+ example : './example.tsx' ,
11
+ } ,
12
+ plugins : [
13
+ new HtmlWebpackPlugin ( {
14
+ template : 'example.html' ,
15
+ filename : 'example.html'
16
+ } )
17
+ ] ,
18
+ } )
You can’t perform that action at this time.
0 commit comments