Skip to content

Commit

Permalink
Merge pull request #9 from yeojz/feature/change-output
Browse files Browse the repository at this point in the history
change output filename of webpack
  • Loading branch information
yeojz committed Jul 29, 2017
2 parents 50c1a0c + b170fac commit 246cdbf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Gerald Yeo
Copyright (c) 2014 Gerald Yeo <contact@fusedthought.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ You'll need to add the following scripts to your code:

```html
<!-- required: common lib -->
<script src="otplib_common.js"></script>
<script src="otplib-commons.js"></script>

<!-- replace with any of the available files below -->
<script src="otplib.js"></script>
Expand All @@ -147,11 +147,11 @@ You'll need to add the following scripts to your code:
__Available files:__

- `otplib.js` - (hotp / totp / google authenticator)
- `otplib_hotp.js` - (hotp)
- `otplib_totp.js` - (totp)
- `otplib_ga.js` - (google authenticator)
- `otplib_otputils.js` - (utilites)
- `otplib_legacy.js` - (v2 interface)
- `otplib-hotp.js` - (hotp)
- `otplib-totp.js` - (totp)
- `otplib-ga.js` - (google authenticator)
- `otplib-otputils.js` - (utilites)
- `otplib-legacy.js` - (v2 interface)

You can find these files in `node_modules/otplib/dist` after you install.
Alternatively, you can get the latest [here](https://github.com/yeojz/otplib/tree/gh-pages/lib).
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"keywords": [
"otplib"
],
"author": "Gerald Yeo",
"author": "Gerald Yeo <contact@fusedthought.com>",
"license": "MIT",
"dependencies": {
"copy": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion site/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3>QR Code</h3>
</div>

<script src="%PUBLIC_URL%/js/qrcode.min.js"></script>
<script src="%PUBLIC_URL%/lib/otplib_commons.js"></script>
<script src="%PUBLIC_URL%/lib/otplib-commons.js"></script>
<script src="%PUBLIC_URL%/lib/otplib.js"></script>
<script src="%PUBLIC_URL%/js/app.js"></script>
</body>
Expand Down
12 changes: 6 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ if (process.env.OTPLIB_WEBPACK_USE_NODE_CRYPTO !== 'true') {
module.exports = {
entry: {
'otplib': SOURCE_FOLDER + '/index.js',
'otplib_ga': SOURCE_FOLDER + '/authenticator.js',
'otplib_hotp': SOURCE_FOLDER + '/hotp.js',
'otplib_legacy': SOURCE_FOLDER + '/v2.js',
'otplib_totp': SOURCE_FOLDER + '/totp.js',
'otplib_utils': SOURCE_FOLDER + '/classes/OTPUtils.js'
'otplib-ga': SOURCE_FOLDER + '/authenticator.js',
'otplib-hotp': SOURCE_FOLDER + '/hotp.js',
'otplib-legacy': SOURCE_FOLDER + '/v2.js',
'otplib-totp': SOURCE_FOLDER + '/totp.js',
'otplib-utils': SOURCE_FOLDER + '/classes/OTPUtils.js'
},
output: {
library: '[name]',
Expand All @@ -46,7 +46,7 @@ module.exports = {
'process.env.OTPLIB_WEBPACK': JSON.stringify(OTPLIB_WEBPACK)
}),
new webpack.optimize.CommonsChunkPlugin({
name: 'otplib_commons'
name: 'otplib-commons'
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
Expand Down

0 comments on commit 246cdbf

Please sign in to comment.