<commit_before>import atImport from 'postcss-import';
import autoprefixer from 'autoprefixer';
import calcFunction from 'postcss-calc-function';
import colorFunction from 'postcss-color-function';
import customProps from 'postcss-custom-props';
import path from 'path';

import config from '../src/common/config';

export default {
  output: {
    path: path.resolve( __dirname, '..', config.dir.dist ),
  },
  module: {
    loaders: [{
      exclude: /node_modules/,
      loaders: [ 'babel' ],
      test: /\.js$/,
    },
    {
      loaders: [ 'json' ],
      test: /\.json$/,
    }],
  },
  postcss: [
    atImport(),
    customProps(),
    calcFunction(),
    colorFunction(),
    autoprefixer({ browsers: [ 'last 2 versions' ]}),
  ],
};<commit_msg>fix(css): hot reload imported styles<commit_after>import atImport from 'postcss-import';
import autoprefixer from 'autoprefixer';
import calcFunction from 'postcss-calc-function';
import colorFunction from 'postcss-color-function';
import customProps from 'postcss-custom-props';
import path from 'path';

import config from '../src/common/config';

export default {
  output: {
    path: path.resolve( __dirname, '..', config.dir.dist ),
  },
  module: {
    loaders: [{
      exclude: /node_modules/,
      loaders: [ 'babel' ],
      test: /\.js$/,
    },
    {
      loaders: [ 'json' ],
      test: /\.json$/,
    }],
  },
  postcss: function () {
    return [
      atImport({
        onImport: function ( files ) {
          files.forEach( this.addDependency );
        }.bind( this )
      }),
      customProps(),
      calcFunction(),
      colorFunction(),
      autoprefixer({ browsers: [ 'last 2 versions' ]}),
    ];
  },
};
{'fraction_non_alphanumeric': 0.16125221500295334, 'fraction_numerical': 0.0011813349084465446, 'mean_word_length': 2.7644444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1956697', 'n_tokens_mistral': 542, 'n_tokens_neox': 535, 'n_words': 127}