Skip to content

Commit

Permalink
Merge pull request #36 from wagoid/master
Browse files Browse the repository at this point in the history
Add Server Side Rendering Support
  • Loading branch information
mike-schultz authored Apr 18, 2019
2 parents 7dadb18 + 6d7a32a commit 5f9bbec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require('./dist/zingtouch.min.js');
const ZingTouch = require('./dist/zingtouch.min.js').default;
module.exports = ZingTouch;
7 changes: 6 additions & 1 deletion src/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
*/

import ZingTouch from './../ZingTouch.js';
window.ZingTouch = ZingTouch;

if (typeof window !== 'undefined') {
window.ZingTouch = ZingTouch;
}

export default ZingTouch;
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module.exports = (env, argv) => {
entry: './src/core/main.js',
output: {
filename: filename,
library: 'ZingTouch',
libraryTarget: 'umd',
},
devtool: 'source-map',
module: {
Expand Down

0 comments on commit 5f9bbec

Please sign in to comment.