ant-design/webpack.config.js

31 lines
554 B
JavaScript
Raw Normal View History

2015-05-21 20:36:13 +08:00
var webpack = require('webpack');
2015-05-25 17:20:49 +08:00
var path = require('path');
2015-05-21 20:36:13 +08:00
module.exports = {
entry: './index.js',
resolve: {
extensions: ['', '.js', '.jsx'],
},
output: {
2015-05-25 17:20:49 +08:00
path: path.join(process.cwd(), 'dist'),
2015-05-21 20:36:13 +08:00
filename: 'index.js'
},
externals: {
react: "React"
},
module: {
loaders: [
{test: /\.jsx$/, loader: 'jsx-loader?harmony'},
{test: /\.js$/, loader: 'jsx-loader?harmony'},
{test: /\.json$/, loader: 'json-loader'},
{test: /\.css/, loader: 'style!css'}
]
},
2015-05-25 17:28:22 +08:00
devtool: "#source-map"
2015-05-21 20:36:13 +08:00
};