1234567891011121314151617181920212223242526272829303132333435 |
- module.exports = {
- entry: './entry.js',
- output: 'bundle.js',
- debug: true,
- devtool: 'source-map',
- module: {
- loaders: [
- {
- test: /\.js$/,
- exclude: /node_modules/,
- loaders: ['babel-loader'],
- },
- {
- test: /\.css$/,
- // loader: 'style-loader!css-loader?modules'
- // loaders: [
- // 'style?sourceMap',
- // 'css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]'
- // ]
- // loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]')
- loader: 'style-loader!css-loader'
- },
- {
- test: /\.(png|jpg|gif|woff|woff2)$/,
- loader: 'url-loader?limit=8192'
- }
- ],
- postLoaders: [
- {
- test: /\.js$/,
- loaders: ['es3ify-loader'],
- },
- ],
- },
- };
|