Skip to content

Commit f4aef3c

Browse files
committed
More code comments in webpack config.
1 parent e206be5 commit f4aef3c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

webpack/webpack.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)