SHARE
TWEET

Untitled

a guest Feb 21st, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.   ...
  3.   module: {
  4.     rules: [
  5.       {
  6.         test: /\.js$/,
  7.         exclude: /node_modules/,
  8.         use: [
  9.           'thread-loader',
  10.           'babel-loader'
  11.         ]
  12.       },
  13.       {
  14.         test: /\.s?css$/,
  15.         exclude: /node_modules/,
  16.         use: [
  17.           'style-loader',
  18.           'thread-loader',
  19.           {
  20.             loader: 'css-loader',
  21.             options: {
  22.               modules: true,
  23.               localIdentName: '[name]__[local]--[hash:base64:5]',
  24.               importLoaders: 1
  25.             }
  26.           },
  27.           'postcss-loader'
  28.         ]
  29.       }
  30.       ...
  31.     ]
  32.     ...
  33.   }
  34.   ...
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top