UNPKG

@sa-labs/fate-core

Version:

fate-core contains the base assumptions of the fate ecosystem as well as utilities for operating with fate.

44 lines (42 loc) 1.04 kB
const path = require('path'); const webpack = require('webpack'); const constants = require('fate-core')(); const fs = require('fs'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-hot-middleware/client', './src/index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/static/' }, plugins: [ new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin() ], module: { loaders: [{ test: /\.js$/, loaders: ['babel'], include: path.join(__dirname, 'src') },{ test: /\.css$/, loader: 'style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader' }] }, postcss: [ require('postcss-import')(), require('postcss-url')(), require('postcss-constants')({ defaults: constants }), require('postcss-cssnext')({ browsers: 'last 2 versions' }), require('postcss-nested'), require('lost') ] };