From 9ffee878cfcaf09f817b466f1a904073c9ce6190 Mon Sep 17 00:00:00 2001 From: surunzi Date: Wed, 25 May 2016 14:26:52 +0800 Subject: [PATCH] Fix: Umd pattern #7 --- package.json | 2 +- webpack.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 926e217..81502c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eruda", - "version": "0.5.7", + "version": "0.5.8", "description": "Console for Mobile Browsers", "main": "dist/eruda.js", "scripts": { diff --git a/webpack.config.js b/webpack.config.js index edec728..72f4c8a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,7 +9,8 @@ module.exports = { output: { path: __dirname + '/dist/', filename: 'eruda.js', - library: ['eruda'] + library: ['eruda'], + libraryTarget: 'umd' }, module: { loaders: [