kentcdodds / webpack-validator-DEPRECATED

Use this to save yourself some time when working on a webpack configuration.
MIT License
93 stars 8 forks source link

#1 webpack gotcha: including `extensions` match `test` #8

Closed PatrickJS closed 8 years ago

PatrickJS commented 8 years ago

validating that extensions match the regexp test

  resolve: {
    extensions: ['.js','.html']
  },

  module: {
    loaders: [
      { test: /\.html$/,  loader: 'raw-loader'}
    ]
  },
kentcdodds commented 8 years ago

Hmmm... Not sure this is a general enough use case to support. For example, I don't add html to my extensions and prefer to actually have the .html in the import statement.

PatrickJS commented 8 years ago

ya, it's probably better to enforce devs to use the extensions

kentcdodds commented 8 years ago

But that's why I made this so pluggable. You can add it yourself for your own project! :-)

PatrickJS commented 8 years ago

totes