2017-05-04 33 views
0

我正在创建一个具有反应和材质UI的应用程序。 Autoprefixer是在package.json和配置的WebPack像这样:内联样式是否会自动添加?

postcss: function() { 
    return [ 
     autoprefixer({ 
     browsers: [ 
      '>1%', 
      'last 4 versions', 
      'Firefox ESR', 
      'not ie < 9', // React doesn't support IE8 anyway 
     ] 
     }), 
    ]; 
}, 

也这样说:

// "postcss" loader applies autoprefixer to our CSS. 
// "css" loader resolves paths in CSS and adds assets as dependencies. 
// "style" loader turns CSS into JS modules that inject <style> tags. 
// In production, we use a plugin to extract that CSS to a file, but 
// in development "style" loader enables hot editing of CSS. 
{ 
    test: /\.css$/, 
    loader: 'style!css?importLoaders=1!postcss' 
}, 

我使用内嵌样式(我知道),他们在汽车前缀?

我可以配置它们吗?以镭为例。

回答