Commit eadc04a 1 parent fa6bc26 commit eadc04a Copy full SHA for eadc04a
File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 83
83
src ="https://unpkg.com/react-is@16/umd/react-is.development.js "
84
84
> </ script >
85
85
86
- < script type ="text/javascript " src ="//unpkg.com/@uform/docs/bundle.iframe.js "> </ script > </ body >
86
+ < script type ="text/javascript " src ="//unpkg.com/@uform/docs/0.1.5/ bundle.iframe.js "> </ script > </ body >
87
87
</ html >
Original file line number Diff line number Diff line change 83
83
src ="https://unpkg.com/react-is@16/umd/react-is.development.js "
84
84
> </ script >
85
85
86
- < script type ="text/javascript " src ="//unpkg.com/@uform/docs/bundle.index.js "> </ script > </ body >
86
+ < script type ="text/javascript " src ="//unpkg.com/@uform/docs/0.1.5/ bundle.index.js "> </ script > </ body >
87
87
</ html >
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
2
const fs = require ( 'fs-extra' )
3
3
const { command } = require ( 'doc-scripts' )
4
-
4
+ const pkg = require ( '../packages/docs/package.json' )
5
5
const HEAD_HTML = `
6
6
<script>
7
7
window.codeSandBoxDependencies = {
@@ -43,7 +43,7 @@ const createDocs = async () => {
43
43
( webpackConfig , env ) => {
44
44
if ( env === 'production' ) {
45
45
webpackConfig . output . filename = 'bundle.[name].js'
46
- webpackConfig . output . publicPath = ' //unpkg.com/@uform/docs/'
46
+ webpackConfig . output . publicPath = ` //unpkg.com/@uform/docs/${ pkg . version } `
47
47
webpackConfig . plugins . forEach ( plugin => {
48
48
if ( plugin . constructor . name === 'HtmlWebpackPlugin' ) {
49
49
plugin . options . filename = path . resolve (
You can’t perform that action at this time.
0 commit comments