diff --git a/webpack.config.js b/webpack.config.js index 27dd23a4b5..5753125b99 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,9 @@ var ExtractTextPlugin = require("extract-text-webpack-plugin"); var path = require('path'); module.exports = { - entry: './index.js', + entry: { + antd: './index.js' + }, resolve: { extensions: ['', '.js', '.jsx'], @@ -11,7 +13,7 @@ module.exports = { output: { path: path.join(process.cwd(), 'dist'), - filename: 'antd.js' + filename: '[name].js' }, externals: { @@ -28,7 +30,7 @@ module.exports = { }, plugins: [ - new ExtractTextPlugin("antd.css") + new ExtractTextPlugin("[name].css") ], devtool: "#source-map"