kriasoft / fsharp-starter-kit

Cross-platform web development with Visual Studio Code, C#, F#, JS, ASP.NET Core, EF Core, React (ReactJS), Babel and Webpack. Demo =>
https://aspnet-core.azurewebsites.net
MIT License
88 stars 12 forks source link

postcss-loader issues #7

Open ForNeVeR opened 7 years ago

ForNeVeR commented 7 years ago

Two users reported me the following error:

[09:50:26] Finished 'appsettings' after 3ms
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'postcss'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
   For typos: please correct them.
   For loader options: webpack 2 no longer allows custom properties in configuration.
     Loaders should be updated to allow passing options via loader options in module.rules.
     Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
     plugins: {
       new webpack.LoaderOptionsPlugin({
         // test: /\.xxx$/, // may apply this only for some modules
         options: {
           postcss: ...
         }
       })
     }
    at webpack

It seems that the latest webpack 2 beta is not compatible with the stable postcss-loader. aspnet-starter-kit have already fixed that issue. Could you please merge that commit?

theramzay commented 7 years ago

Yes, same error.

cxinixn commented 7 years ago

Yes, same error.