File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 6060 "watch" : " BUILD_ENV=patternslib NODE_ENV=development webpack --config webpack/webpack.config.js --watch"
6161 },
6262 "files" : [
63+ " /_sass" ,
6364 " /dist" ,
64- " /src"
65+ " /src" ,
66+ " /webpack"
6567 ],
6668 "engines" : {
6769 "node" : " >=12.20.0"
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ module.exports = () => {
2929 modernizr$ : path . resolve ( __dirname , "../.modernizrrc.js" ) ,
3030 } ;
3131
32+ // Module federation
3233 config . plugins . push (
3334 mf_config ( {
3435 name : "patternslib" ,
@@ -48,6 +49,8 @@ module.exports = () => {
4849 } )
4950 ) ;
5051
52+ // BBB polyfills not used anymore.
53+ // TODO: Remove for next major version.
5154 // Polyfills
5255 config . plugins . push (
5356 // Copy polyfills loader to the output path.
@@ -60,8 +63,10 @@ module.exports = () => {
6063
6164 if ( process . env . NODE_ENV === "development" ) {
6265 config . devServer . static . directory = path . resolve ( __dirname , "../" ) ;
63- config . devServer . headers [ "Content-Security-Policy" ] =
64- "default-src https: http: data: 'self' 'unsafe-inline'; script-src https: http: data: 'self' 'unsafe-inline';" ;
66+ // Add a strict Content-Security-Policy without 'unsafe-inline' to the dev
67+ // server for testing CSR issues.
68+ //config.devServer.headers["Content-Security-Policy"] =
69+ // "default-src https: http: data: 'self';";
6570 }
6671
6772 // Add an @patternslib /patternslib alias when building within this repository.
You can’t perform that action at this time.
0 commit comments