Skip to content

Commit fea55e5

Browse files
authored
Merge pull request #10 from JB1905/1-next
v1.2.1
2 parents 1f2b013 + 8a55765 commit fea55e5

File tree

8 files changed

+231
-247
lines changed

8 files changed

+231
-247
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#### Bug Fix
1313
- fix animation performance
1414

15+
## 1.2.1 (2018-11-11)
16+
#### Bug Fix
17+
- fixed bug with `window` global variable in Node.js
18+
1519
## 1.2.0 beta 1 / 1.2.0 (2018-10-15)
1620
#### Breaking Changes
1721
- replaced `mobile` option with `exclude` (disable tilt effect on selected user agents)

lib/universal-tilt.js

Lines changed: 2 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/universal-tilt.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/universal-tilt.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 210 additions & 213 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "universal-tilt.js",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Parallax tilt effect library",
55
"main": "lib/universal-tilt.min.js",
66
"scripts": {
@@ -29,20 +29,19 @@
2929
},
3030
"homepage": "https://github.com/JB1905/universal-tilt.js#readme",
3131
"devDependencies": {
32-
"@babel/cli": "^7.1.2",
33-
"@babel/core": "^7.1.2",
34-
"@babel/preset-env": "^7.1.0",
32+
"@babel/cli": "^7.1.5",
33+
"@babel/core": "^7.1.5",
34+
"@babel/preset-env": "^7.1.5",
3535
"@babel/register": "^7.0.0",
3636
"babel-loader": "^8.0.4",
3737
"babel-plugin-add-module-exports": "^1.0.0",
3838
"chai": "^4.2.0",
3939
"gh-pages": "^2.0.1",
40-
"jsdom": "12.2.0",
40+
"jsdom": "13.0.0",
4141
"jsdom-global": "^3.0.2",
4242
"mocha": "^5.2.0",
4343
"mock-local-storage": "^1.1.7",
44-
"webpack": "^4.22.0",
45-
"webpack-cli": "^3.1.2",
46-
"yargs": "^12.0.2"
44+
"webpack": "^4.25.1",
45+
"webpack-cli": "^3.1.2"
4746
}
4847
}

src/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,25 @@ let outputFile, mode, devtool;
88

99
if (env === 'build') {
1010
mode = 'production';
11-
outputFile = libraryName + '.min.js';
11+
outputFile = `${libraryName}.min.js`;
1212
devtool = false;
1313
} else {
1414
mode = 'development';
15-
outputFile = libraryName + '.js';
15+
outputFile = `${libraryName}.js`;
1616
devtool = 'source-map';
1717
}
1818

1919
const config = {
2020
mode,
21-
entry: __dirname + '/src/index.js',
21+
entry: `${__dirname}/src/${libraryName}.js`,
2222
devtool,
2323
output: {
24-
path: __dirname + '/lib',
24+
path: `${__dirname}/lib`,
2525
filename: outputFile,
2626
library: 'UniversalTilt',
2727
libraryTarget: 'umd',
28-
umdNamedDefine: true
28+
umdNamedDefine: true,
29+
globalObject: 'global'
2930
},
3031
module: {
3132
rules: [

0 commit comments

Comments
 (0)