File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,18 @@ module.exports = class extends Generator {
112112 path
113113 . normalize ( answers . pkg . browser || answers . pkg . main )
114114 . replace ( / \\ / g, '/' ) ,
115- filter : libraryPath => libraryPath . replace ( / \\ / g, '/' ) ,
115+ filter : relativePath => relativePath . replace ( / \\ / g, '/' ) ,
116116 } ,
117117 {
118118 type : 'input' ,
119119 name : 'relativePath' ,
120120 message : 'What is the main JavaScript file?' ,
121121 when : answers => answers . relativePath === 'Other' ,
122+ default : answers =>
123+ path
124+ . normalize ( answers . pkg . browser || answers . pkg . main )
125+ . replace ( / \\ / g, '/' ) ,
126+ filter : relativePath => relativePath . replace ( / \\ / g, '/' ) ,
122127 } ,
123128 {
124129 type : 'list' ,
Original file line number Diff line number Diff line change 2222 <fileName>popper.min.js</fileName>
2323 <preferredScriptLocation>BodyBottom</preferredScriptLocation>
2424 <objectName>Popper</objectName>
25- <cdnUrl>https://cdn.jsdelivr.net/npm/popper.js@<~=version~>/dist\ popper.min.js</cdnUrl>
25+ <cdnUrl>https://cdn.jsdelivr.net/npm/popper.js@<~=version~>/dist/ popper.min.js</cdnUrl>
2626 </javaScriptLibrary>
2727 </component>
2828 <component type="JavaScriptFile">
You can’t perform that action at this time.
0 commit comments