From 7f21f07023882870557432a8056b3bb736071516 Mon Sep 17 00:00:00 2001 From: surunzi Date: Sun, 3 Jul 2016 12:43:36 +0800 Subject: [PATCH] Dev: Move eruda.js to root directory --- .gitignore | 2 +- README.md | 4 ++-- docs/Readme_CH.md | 4 ++-- package.json | 2 +- webpack.config.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index d5090bb..823be02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /.idea/ /node_modules/ -/dist/ +eruda* /script/icomoon/ \ No newline at end of file diff --git a/README.md b/README.md index 7fd6238..696fd88 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ npm install eruda --save Add this script to your page. ```html - + ``` @@ -60,7 +60,7 @@ for example: ```javascript (function () { - var src = 'node_modules/eruda/dist/eruda.min.js'; + var src = 'node_modules/eruda/eruda.min.js'; if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return; document.write(''); document.write('eruda.init();'); diff --git a/docs/Readme_CH.md b/docs/Readme_CH.md index 109efa4..794da1d 100644 --- a/docs/Readme_CH.md +++ b/docs/Readme_CH.md @@ -37,7 +37,7 @@ npm install eruda --save 在页面中加载脚本: ```html - + ``` @@ -45,7 +45,7 @@ Js文件对于移动端来说略重(gzip后大概85kb)。建议通过url参 ```javascript (function () { - var src = 'node_modules/eruda/dist/eruda.min.js'; + var src = 'node_modules/eruda/eruda.min.js'; if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return; document.write(''); document.write('eruda.init();'); diff --git a/package.json b/package.json index 97330fb..7b82f47 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eruda", - "version": "1.0.0", + "version": "1.0.1", "description": "Console for Mobile Browsers", "main": "dist/eruda.js", "scripts": { diff --git a/webpack.config.js b/webpack.config.js index 5968ea5..3cb946f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,7 +15,7 @@ module.exports = { port: 3000 }, output: { - path: __dirname + '/dist/', + path: __dirname, publicPath: "/assets/", filename: 'eruda.js', library: ['eruda'],