1 | var path = require('path');
|
2 | var webpack = require('webpack');
|
3 |
|
4 | module.exports = {
|
5 | cache: true,
|
6 | entry: {
|
7 | app: "./examples/app.jsx"
|
8 | },
|
9 | output: {
|
10 | path: path.join(__dirname),
|
11 | publicPath: '/',
|
12 | filename: '[name].js',
|
13 | chunkFilename: '[chunkhash].js'
|
14 | },
|
15 | module: {
|
16 | loaders: [
|
17 | {
|
18 | test: /\.js$/,
|
19 | loader: 'jsx-loader?harmony'
|
20 | },
|
21 | {
|
22 | test: /\.jsx$/,
|
23 | loader: 'jsx-loader?insertPragma=React.DOM&harmony'
|
24 | }
|
25 | ]
|
26 | }
|
27 | }
|