Browse Source

update webpack.config

pull/6/head
afc163 10 years ago
parent
commit
e4c8ff65a6
  1. 8
      webpack.config.js

8
webpack.config.js

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

Loading…
Cancel
Save