UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

62 lines (54 loc) 1.41 kB
/* eslint-env node */ const path = require('path'); const config = require('./webpack.client.base.config'); delete config.plugins; config.module = config.module || {}; config.module.loaders = config.module.loaders || []; config.module.loaders.push( { test: /\.css$/, loaders: [ 'style-loader?sourceMap', 'css-loader?modules&sourceMap&localIdentName=[name]__[local]__[hash:base64:5]', 'postcss-loader', ], include: path.resolve(__dirname, '../'), }, { test: /\.scss$/, loaders: ['style-loader', 'css-loader', 'sass-loader'], }, { test: /\.(woff2?)$/, loader: 'url?limit=10000', }, { test: /\.(ttf|eot)$/, loader: 'file', }, { test: /\.(jpe?g|png|gif|ico)$/, loader: 'customfile-loader?limit=10000&name=[name]-[hash].[ext]&hotMode=true', }, { test: /\.json$/, loader: 'json-loader', }, { test: /\.svg$/, loader: 'raw-loader', } ); // Enzyme fix: Ignore conditional require() calls which makes Enzyme compatible with old React versions. // https://github.com/airbnb/enzyme/blob/master/docs/guides/webpack.md config.externals = { jsdom: 'window', cheerio: 'window', 'react/lib/ExecutionEnvironment': true, 'react/lib/ReactContext': 'window', 'react/addons': true, }; config.output = {}; config.output.publicPath = '/static/'; config.devtool = 'eval-source-map'; module.exports = config;