This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
31 lines (29 sloc)
662 Bytes
| import path from 'path'; | |
| export default { | |
| module: { | |
| loaders: [{ | |
| test: /\.jsx?$/, | |
| loaders: ['babel-loader'], | |
| exclude: /node_modules/ | |
| }, { | |
| test: /\.json$/, | |
| loader: 'json-loader' | |
| }] | |
| }, | |
| output: { | |
| path: path.join(__dirname, 'dist'), | |
| filename: 'bundle.js', | |
| libraryTarget: 'commonjs2' | |
| }, | |
| resolve: { | |
| extensions: ['', '.js', '.jsx', '.json'], | |
| packageMains: ['webpack', 'browser', 'web', 'browserify', ['jam', 'main'], 'main'] | |
| }, | |
| plugins: [ | |
| ], | |
| externals: [ | |
| 'pg' | |
| // put your node 3rd party libraries which can't be built with webpack here | |
| // (mysql, mongodb, and so on..) | |
| ] | |
| }; |