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 {
112
112
path
113
113
. normalize ( answers . pkg . browser || answers . pkg . main )
114
114
. replace ( / \\ / g, '/' ) ,
115
- filter : libraryPath => libraryPath . replace ( / \\ / g, '/' ) ,
115
+ filter : relativePath => relativePath . replace ( / \\ / g, '/' ) ,
116
116
} ,
117
117
{
118
118
type : 'input' ,
119
119
name : 'relativePath' ,
120
120
message : 'What is the main JavaScript file?' ,
121
121
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, '/' ) ,
122
127
} ,
123
128
{
124
129
type : 'list' ,
Original file line number Diff line number Diff line change 22
22
<fileName>popper.min.js</fileName>
23
23
<preferredScriptLocation>BodyBottom</preferredScriptLocation>
24
24
<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>
26
26
</javaScriptLibrary>
27
27
</component>
28
28
<component type="JavaScriptFile">
You can’t perform that action at this time.
0 commit comments