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.
26 lines
723 B
26 lines
723 B
|
10 years ago
|
var path = require('path');
|
||
|
|
var webpack = require('webpack');
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
module: {
|
||
|
|
preLoaders: [
|
||
|
|
{ test: /\.js$/, loader: "source-map-loader" }
|
||
|
|
],
|
||
|
|
loaders: [
|
||
|
|
{ test: /\.json$/, loader: "json" },
|
||
|
|
{ test: /\.js$/, loader: "babel", include: path.resolve('./src') },
|
||
|
|
]
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
// alias any requires to the react module to the one in our path, otherwise
|
||
|
|
// we tend to get the react source included twice when using npm link.
|
||
|
|
react: path.resolve('./node_modules/react'),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
plugins: [
|
||
|
|
new webpack.IgnorePlugin(/^olm/)
|
||
|
|
],
|
||
|
|
devtool: 'source-map'
|
||
|
|
};
|