Skip to content

Instantly share code, notes, and snippets.

@jgierer12
Created March 31, 2018 21:30

Revisions

  1. jgierer12 created this gist Mar 31, 2018.
    7 changes: 7 additions & 0 deletions postcss.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    module.exports = {
    plugins: {
    'postcss-cssnext': {},
    // other plugins (https://github.com/postcss/postcss#plugins)
    'cssnano': {}
    }
    }
    20 changes: 20 additions & 0 deletions webpack.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    module.exports = {
    module: {
    rules: [
    {
    test: /\.css$/,
    use: [
    'style-loader',
    {
    loader: 'css-loader',
    options: {
    importLoaders: 1,
    modules: true
    }
    },
    'postcss-loader'
    ]
    }
    ]
    }
    }