Skip to content

Commit

Permalink
feat: include jquery in build
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed May 6, 2020
1 parent 2948e96 commit 4b6c6c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ <h3>Prelogin</h3>
</div>


<!-- require:dependencies -->
<!-- only needed for the example script -->
<script src="js/jquery.min.js"></script>
<!-- endrequire -->

<!-- require:optional -->
<script src="/libsignal/dist/libsignal-protocol.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions example/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ <h1 class="page-header">Restricted Area <small>simulated</small></h1>
</div>
</div>

<!-- require:dependencies -->
<!-- only needed for the example script -->
<script src="js/jquery.min.js"></script>
<!-- endrequire -->

<!-- require:optional -->
<script src="/libsignal/dist/libsignal-protocol.js"></script>
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,14 @@ let config = {
}
},
externals: {
'jquery': 'jQuery',
'child_process': 'child_process',
'webworker-threads': 'webworker-threads'
},
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
}),
new MiniCssExtractPlugin({
filename: 'styles/jsxc.bundle.css',

Expand Down

0 comments on commit 4b6c6c9

Please sign in to comment.