Skip to content

Commit

Permalink
Merge pull request #42 from FlexConfirmMail/bundle-external-libraries
Browse files Browse the repository at this point in the history
Bundle external libraries
  • Loading branch information
piroor authored Jan 20, 2025
2 parents 71179d9 + 313329d commit 43d2b60
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 14 deletions.
77 changes: 71 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"watch:run-test-server": "webpack --mode production --watch --output-path tests/run-test-server/web --watch-options-poll=10000"
},
"dependencies": {
"@microsoft/office-js": "^1.1.90",
"@fluentui/web-components": "^2.6.1",
"@microsoft/office-js": "^1.1.101",
"bootstrap": "^5.3.2",
"core-js": "^3.9.1",
"jquery": "^3.7.1",
Expand Down
2 changes: 1 addition & 1 deletion src/web/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>No title</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" crossorigin="anonymous"></script>
<script src="lib/office-js/office.js" type="text/javascript"></script>
</head>
<body>
</body>
Expand Down
6 changes: 3 additions & 3 deletions src/web/confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<title>Confirmation</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script src="https://unpkg.com/@fluentui/web-components" type="module"></script>
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="lib/fluentui/web-components/web-components.min.js" type="module"></script>
<script src="lib/office-js/office.js" type="text/javascript"></script>
<script src="lib/jquery/jquery.min.js" type="text/javascript"></script>
<link href="dialog.css" rel="stylesheet">
<link href="confirm.css" rel="stylesheet">
</head>
Expand Down
6 changes: 3 additions & 3 deletions src/web/count-down.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<title>Confirmation</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script src="https://unpkg.com/@fluentui/web-components" type="module"></script>
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="lib/fluentui/web-components/web-components.min.js" type="module"></script>
<script src="lib/office-js/office.js" type="text/javascript"></script>
<script src="lib/jquery/jquery.min.js" type="text/javascript"></script>
<link href="dialog.css" rel="stylesheet">
<link href="count-down.css" rel="stylesheet">
</head>
Expand Down
20 changes: 20 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,26 @@ module.exports = async (env, options) => {
}
},
},
{
from: "node_modules/@microsoft/office-js/dist",
to: "lib/office-js",
},
{
from: "node_modules/@microsoft/office-js/LICENSE.md",
to: "lib/office-js/LICENSE.md",
},
{
from: "node_modules/jquery/dist/jquery.min.js",
to: "lib/jquery/jquery.min.js",
},
{
from: "node_modules/jquery/LICENSE.txt",
to: "lib/jquery/LICENSE.txt",
},
{
from: "node_modules/@fluentui/web-components/dist/web-components.min.js",
to: "lib/fluentui/web-components/web-components.min.js",
},
],
}),
new HtmlWebpackPlugin({
Expand Down

0 comments on commit 43d2b60

Please sign in to comment.