jhen0409 / react-chrome-extension-boilerplate

Boilerplate for Chrome Extension React.js project
MIT License
2.14k stars 388 forks source link

How to add semantic config in the webpack config? #99

Open nagacoder opened 5 years ago

nagacoder commented 5 years ago

i have config like this in webpack


      test: /\.js$/,
      loader: 'babel-loader',
      exclude: /node_modules/,
      options: {
        presets: ['react-hmre']
      }
    }, {
      test: /\.css$/,
      use: [
        'style-loader',
        'css-loader?modules&sourceMap&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]',
        {
          loader: 'postcss-loader',
          options: {
            plugins: () => [autoprefixer]
          }
        }
      ]
    },
    {
      test: /\.(png|woff|woff2|eot|ttf|svg)$/,
      loader: 'url-loader?limit=100000'
    }
  ]```
and get error like this

![image](https://user-images.githubusercontent.com/32693625/55225631-a5d60b00-5245-11e9-9c24-ca6e282c927d.png)
nagacoder commented 5 years ago

image