UNPKG

generator-capybara

Version:

Yeoman generator for front-end with Atomic Design + Stylus + Webpack + Rupture + Kouto-Swiss + Jeet + ES6 + BrowserSync.

53 lines (50 loc) 1.08 kB
const webpack = require('webpack'); const conf = require('./gulp.conf'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const autoprefixer = require('autoprefixer'); module.exports = { module: { loaders: [ { test: /.json$/, loaders: [ 'json' ] }, { test: /\.(css|styl|stylus)$/, loaders: [ 'style', 'css', 'stylus', 'postcss' ] }, { test: /\.js$/, exclude: /node_modules/, loaders: [ 'ng-annotate', 'babel' ] } ] }, plugins: [ new webpack.optimize.OccurrenceOrderPlugin(), new webpack.NoErrorsPlugin(), new HtmlWebpackPlugin({ template: conf.path.src('index.html'), inject: true }) ], postcss: () => [autoprefixer], debug: true, devtool: 'cheap-module-eval-source-map', output: { path: path.join(process.cwd(), conf.paths.tmp), filename: 'index.js' }, entry: `./${conf.path.src('index')}` };