You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
605 B
31 lines
605 B
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: /\.less$/, loader: "style!css!less"},
|
|
{test: /\.css/, loader: 'style!css'}
|
|
]
|
|
},
|
|
|
|
devtool: "#source-map"
|
|
};
|
|
|