File tree 4 files changed +25
-2
lines changed 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const webpack = require('webpack');
3
3
const path = require ( 'path' ) ;
4
4
const fs = require ( 'fs' ) ;
5
5
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
6
+ const ScriptExtHtmlWebpackPlugin = require ( 'script-ext-html-webpack-plugin' ) ;
6
7
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
7
8
const CaseSensitivePathsPlugin = require ( 'case-sensitive-paths-webpack-plugin' ) ;
8
9
const threadLoader = require ( 'thread-loader' ) ;
@@ -447,6 +448,13 @@ module.exports = {
447
448
minifyURLs : true ,
448
449
} ,
449
450
} ) ,
451
+ new ScriptExtHtmlWebpackPlugin ( {
452
+ custom : {
453
+ test : 'sandbox' ,
454
+ attribute : 'crossorigin' ,
455
+ value : 'anonymous' ,
456
+ } ,
457
+ } ) ,
450
458
]
451
459
: [
452
460
// Generates an `index.html` file with the <script> injected.
@@ -495,6 +503,13 @@ module.exports = {
495
503
minifyURLs : true ,
496
504
} ,
497
505
} ) ,
506
+ new ScriptExtHtmlWebpackPlugin ( {
507
+ custom : {
508
+ test : 'sandbox' ,
509
+ attribute : 'crossorigin' ,
510
+ value : 'anonymous' ,
511
+ } ,
512
+ } ) ,
498
513
new HtmlWebpackPlugin ( {
499
514
inject : true ,
500
515
chunks : __PROD__
Original file line number Diff line number Diff line change 320
320
"rimraf" : " ^2.6.1" ,
321
321
"run-sequence" : " ^1.2.2" ,
322
322
"sass-loader" : " ^7.1.0" ,
323
+ "script-ext-html-webpack-plugin" : " ^2.1.4" ,
323
324
"selenium-webdriver" : " ^4.0.0-alpha.1" ,
324
325
"strip-ansi" : " 3.0.1" ,
325
326
"style-loader" : " ^0.21.0" ,
Original file line number Diff line number Diff line change @@ -169,8 +169,8 @@ function build(previousSizeMap) {
169
169
// }
170
170
// );
171
171
172
- console . log ( `Writing version '${ version } ' to version.txt` ) ;
173
- fs . writeFile ( paths . appBuild + '/version.txt' , version ) ;
172
+ console . log ( `Writing version '${ version . default } ' to version.txt` ) ;
173
+ fs . writeFileSync ( paths . appBuild + '/version.txt' , version . default ) ;
174
174
console . log ( ) ;
175
175
176
176
let openCommand = process . platform === 'win32' ? 'start' : 'open' ;
Original file line number Diff line number Diff line change @@ -25362,6 +25362,13 @@ screenfull@^4.1.0:
25362
25362
resolved "https://registry.yarnpkg.com/screenfull/-/screenfull-4.2.0.tgz#d5252a5a0f56504719abbed9ebbcd9208115da03"
25363
25363
integrity sha512-qpyI9XbwuMJElWRP5vTgxkFAl4k7HpyhIqBFOZEwX9QBXn0MAuRSpn7LOc6/4CeSwoz61oBu1VPV+2fbIWC+5Q==
25364
25364
25365
+ script-ext-html-webpack-plugin@^2.1.4:
25366
+ version "2.1.4"
25367
+ resolved "https://registry.yarnpkg.com/script-ext-html-webpack-plugin/-/script-ext-html-webpack-plugin-2.1.4.tgz#7c309354e310bf78523e1b84ca96fd374ceb9880"
25368
+ integrity sha512-7MAv3paAMfh9y2Rg+yQKp9jEGC5cEcmdge4EomRqri10qoczmliYEVPVNz0/5e9QQ202e05qDll9B8zZlY9N1g==
25369
+ dependencies:
25370
+ debug "^4.1.1"
25371
+
25365
25372
scroll-behavior@^0.9.9:
25366
25373
version "0.9.10"
25367
25374
resolved "https://registry.yarnpkg.com/scroll-behavior/-/scroll-behavior-0.9.10.tgz#c8953adeeb3586060b903328d860aa8346d62861"
You can’t perform that action at this time.
0 commit comments