vue.config.js 532 B

12345678910111213141516171819202122232425
  1. module.exports = {
  2. css: {
  3. loaderOptions: {
  4. postcss: {
  5. plugins: [
  6. require('tailwindcss'),
  7. require('autoprefixer'),
  8. ],
  9. },
  10. },
  11. },
  12. chainWebpack: config => {
  13. config.module
  14. .rule('vue')
  15. .use('vue-loader')
  16. .tap(options => {
  17. options.compilerOptions = {
  18. ...options.compilerOptions,
  19. isCustomElement: tag => tag.startsWith('app-'),
  20. };
  21. return options;
  22. });
  23. },
  24. }