Sha256: 2f04860d0bd64b1f09a6b8d4499a180666d38d76bd072aa87f8d5a212b751bf1
Contents?: true
Size: 871 Bytes
Versions: 22
Compression:
Stored size: 871 Bytes
Contents
const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const extractCSS = new ExtractTextPlugin('styles.css'); module.exports = { entry: ['./src/index.js'], output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, module: { rules: [ { test: /\.(js|jsx)$/, use: { loader: 'babel-loader', options: { presets: ['env', 'react'] } } }, { test: /\.css$/, use: extractCSS.extract({ use: { loader: 'css-loader', options: { minimize: true } }, fallback: 'style-loader' }) }, ] }, plugins: [ extractCSS, new UglifyJSPlugin() ] };
Version data entries
22 entries across 22 versions & 1 rubygems