How to use the webpack-atoms.createAtoms function in webpack-atoms

To help you get started, we’ve selected a few webpack-atoms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 4Catalyzer / astroturf / example / webpack.config.js View on Github external
const path = require('path');

const { rules, plugins, loaders } = require('webpack-atoms').createAtoms({
  env: 'development',
});

const inlineRule = rules.js();
inlineRule.use = [
  ...inlineRule.use,
  {
    loader: require.resolve('../lib/loader'),
    options: { extension: '.module.scss' },
  },
];

module.exports = {
  entry: './src/client.js',
  devtool: 'cheap-module-source-map',
  devServer: {