UNPKG

consonance

Version:
35 lines (28 loc) 728 B
const StaticSiteGeneratorPlugin = require('static-site-generator-webpack-plugin'); const data = require('./docs/data'); module.exports = { entry: './docs/entry.js', output: { filename: 'bundle.js', path: __dirname, libraryTarget: 'umd', }, module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }, { test: /\.jsx$/, exclude: /node_modules/, loader: 'babel-loader' }, { test: /\.css/, loader: 'css-loader!cssnext-loader' } ] }, plugins: [ new StaticSiteGeneratorPlugin('bundle.js', data.routes, data) ], cssnext: { compress: true, features: { rem: false, pseudoElements: false, colorRgba: false } } };