mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
31 lines
554 B
JavaScript
31 lines
554 B
JavaScript
var webpack = require('webpack');
|
|
var path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './index.js',
|
|
|
|
resolve: {
|
|
extensions: ['', '.js', '.jsx'],
|
|
},
|
|
|
|
output: {
|
|
path: path.join(process.cwd(), 'dist'),
|
|
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'}
|
|
]
|
|
},
|
|
|
|
devtool: "#source-map"
|
|
};
|