vue packaged postcss no found config error

Recent contact with the use of a thing to submit code after gitlab automatic line installation package, the local packaging no problem, but the packages put online on the problem

Project in the configuration file does .postcssrc.js   or postcss.config.js , and later only to give form to file configuration

In the build / ultils.js configuration file

 

The above is the basic configuration, needs modification

 

postcssLoader = const { 
    Loader: 'postcss-Loader' , 
    Options: { 
      sourceMap: options.sourceMap, 
      plugins: [ 
        the require ( 'autoprefixer') ()  // add this to 
      ] 
    } 
}

 

Guess you like

Origin www.cnblogs.com/gosh-hash/p/11294357.html