imperodesign / generator-impero

Impero's website skeleton generator, courtesy of Yeoman
Other
1 stars 1 forks source link

Update Webpack to newer options config #41

Open samhh opened 7 years ago

samhh commented 7 years ago

See postcss-loader's example: https://github.com/postcss/postcss-loader

samhh commented 7 years ago

eslint-loader appears to be ready for this change, at least.

The lint rule becomes, as an example:

        enforce: 'pre',
        test: /\.js$/,
        loader: 'eslint',
        options: {
          configFile: './.eslintrc',
          emitError: true,
          emitWarning: true
        },
        exclude: /node_modules/
      }

Need to make conditional checks here for if TypeScript or not as currently the planned TypeScript integration would use its own linter, with an inevitably differing config.

samhh commented 7 years ago

The Stylus and PostCSS loaders aren't really ready yet. I have however updated ESLint's config: https://github.com/imperodesign/generator-impero/commit/cb7b2470775f75b378c6e22bba643614e456efb1

samhh commented 7 years ago

stylus-loader appears to be ready.