Skip to content

Commit

Permalink
Load scripts by webpack completely
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 30, 2024
1 parent 847dea2 commit 56c7225
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/web/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<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 type="text/javascript" src="app.js"></script>
</head>
<body>
blank
Expand Down
1 change: 0 additions & 1 deletion src/web/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<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="dialog.js" type="module"></script>
<link href="dialog.css" rel="stylesheet">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = async (env, options) => {
new HtmlWebpackPlugin({
filename: "app.html",
template: "./src/web/app.html",
chunks: ["polyfill"],
chunks: ["polyfill", "app"],
}),
new CopyWebpackPlugin({
patterns: [
Expand Down Expand Up @@ -80,7 +80,7 @@ module.exports = async (env, options) => {
new HtmlWebpackPlugin({
filename: "dialog.html",
template: "./src/web/dialog.html",
chunks: ["polyfill"],
chunks: ["polyfill", "dialog"],
}),
],
devServer: {
Expand Down

0 comments on commit 56c7225

Please sign in to comment.