From 6de6c0e16bb36cc7c169eaccb21c32dc34d90f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 11 Jan 2017 22:18:23 +0100 Subject: [PATCH] Use webpack-rc4 --- index.js | 9 +++++++++ lib/nuxt.js | 2 +- package.json | 9 ++++----- 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000000..003e919306 --- /dev/null +++ b/index.js @@ -0,0 +1,9 @@ +/* +** Nuxt.js +** Made by Chopin Brothers +** @Atinux & @alexchopin +*/ + +var Nuxt = require('./dist/nuxt.js') + +module.exports = Nuxt.default ? Nuxt.default : Nuxt diff --git a/lib/nuxt.js b/lib/nuxt.js index 3279a29544..495345c744 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -114,4 +114,4 @@ class Nuxt { } -module.exports = Nuxt +export default Nuxt diff --git a/package.json b/package.json index 77c2dbb9be..034f734a3a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "name": "Alexandre Chopin" } ], - "main": "./dist/nuxt.js", + "main": "./index.js", "license": "MIT", "repository": { "type": "git", @@ -18,7 +18,8 @@ }, "files": [ "bin", - "dist" + "dist", + "index.js" ], "keywords": [ "nuxt", @@ -58,8 +59,6 @@ "cross-spawn": "^5.0.1", "css-loader": "^0.26.1", "debug": "^2.6.0", - "es6-object-assign": "^1.0.3", - "es6-promise": "^4.0.5", "extract-text-webpack-plugin": "2.0.0-beta.4", "file-loader": "^0.9.0", "fs-extra": "^1.0.0", @@ -81,7 +80,7 @@ "vue-server-renderer": "^2.1.8", "vue-template-compiler": "^2.1.8", "vuex": "^2.1.1", - "webpack": "2.2.0-rc.3", + "webpack": "^2.2.0-rc.4", "webpack-dev-middleware": "^1.9.0", "webpack-hot-middleware": "^2.14.0" },