How to use the webpack-atoms.plugins.extractCss 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 reactjs / react-transition-group / .storybook / webpack.config.js View on Github external
module.exports = (config) => {
  config.module = {
    rules: [
      rules.js.inlineCss(),
      rules.css({ modules: true }),
    ],
  };

  config.plugins.push(
    plugins.extractCss({ disable: true })
  )
  return config;
};
github jquense / topeka / docs / webpack.config.js View on Github external
entry: require.resolve('./client.js'),
  output: {
    path: path.join(__dirname, '../docs/'),
    filename: 'bundle.js',
    publicPath: '/docs',
  },
  resolve: {
    alias: {
      topeka: path.resolve(__dirname, '../src'),
    },
  },
  module: {
    rules: [rules.js(), rules.css(), rules.less()],
  },
  plugins: [plugins.extractCss()],
}
github intljusticemission / react-big-calendar / examples / webpack.config.js View on Github external
module: {
    rules: [
      rules.js({}),
      rules.images(),
      rules.fonts(),
      { oneOf: [rules.css.modules(), rules.css()] },
      rules.sass({ browsers }),
      {
        test: /\.md/,
        use: [loaders.js(), 'markdown-jsx-loader'],
      },
    ],
  },
  plugins: [
    plugins.html({ title: 'React Big Calendar' }),
    plugins.extractCss(),
  ],
}