From efc0f53dc8693ede6b9338bcf450c663ff69e532 Mon Sep 17 00:00:00 2001 From: xiazeyu_2011 Date: Wed, 7 Feb 2018 20:52:41 +0800 Subject: [PATCH] build: remove lib from github, rename output file --- .gitignore | 7 +++++-- .npmignore | 3 --- dev.html | 2 +- webpack.config.js | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 356ccd0..a62c54f 100644 --- a/.gitignore +++ b/.gitignore @@ -36,5 +36,8 @@ jspm_packages # Optional REPL history .node_repl_history -# Developing folder -dev +# Online document +ghpages + +# Build folder +lib diff --git a/.npmignore b/.npmignore index 6ef1d07..89d77b0 100644 --- a/.npmignore +++ b/.npmignore @@ -36,8 +36,5 @@ jspm_packages # Optional REPL history .node_repl_history -# Developing folder -dev - # Online document ghpages diff --git a/dev.html b/dev.html index 8b9b3e3..04bf047 100644 --- a/dev.html +++ b/dev.html @@ -7,7 +7,7 @@ - + diff --git a/webpack.config.js b/webpack.config.js index cea8f1b..547ae66 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,13 +16,13 @@ module.exports = env => {return{ ], output: { - filename: 'clL2D.min.js', + filename: 'L2Dwidget.min.js', // YOU MUST INSTALL babel-plugin-syntax-dynamic-import FIRST TO ENABLE CODE SPLITTING! - chunkFilename: 'clL2D.[id].min.js', + chunkFilename: 'L2Dwidget.[id].min.js', library: 'L2Dwidget', libraryExport: 'L2Dwidget', libraryTarget: 'var', - path: path.resolve(__dirname, (isProd(env) ? 'lib' : 'dev')), + path: path.resolve(__dirname, 'lib'), pathinfo: (isProd(env) ? false : true), },