diff --git a/.gitignore b/.gitignore index 0424a1f3..a4e522f7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ yarn-error.log *.eot *.woff2 *.ttf +example-built.js +example-built.js.map index-built.js index-built.js.map index.html diff --git a/.npmignore b/.npmignore index 67e5c107..7941988d 100644 --- a/.npmignore +++ b/.npmignore @@ -1,7 +1,9 @@ -example +example.js +example-built.js +example-built.js.map karma.conf.js -webpack.config.build.babel.js -webpack.config.dev.babel.js +webpack.config.build.js +webpack.config.dev.js webpack.config.test.js tests *.woff diff --git a/webpack.config.build.js b/webpack.config.build.js index 464be322..7ac27fcf 100644 --- a/webpack.config.build.js +++ b/webpack.config.build.js @@ -6,10 +6,13 @@ const WebpackErrorNotificationPlugin = require('webpack-error-notification') module.exports = { cache: true, devtool: 'source-map', - entry: './index', + entry: { + index: './index.js', + example: './example.js' + }, output: { path: path.resolve('./'), - filename: 'index-built.js', + filename: '[name]-built.js', library: 'kui', libraryTarget: 'umd', umdNamedDefine: true