Skip to content

Commit 5f86aec

Browse files
authored
Merge pull request #1116 from Patternslib/package-fixes
Package fixes
2 parents e206be5 + 70da6b1 commit 5f86aec

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@
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"

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)