vue.config.js 585 B

123456789101112131415161718192021222324252627282930
  1. const path = require('path');
  2. module.exports = {
  3. devServer: {
  4. overlay: {
  5. warnings: true,
  6. errors: true
  7. }
  8. },
  9. runtimeCompiler: true,
  10. pluginOptions: {
  11. 'style-resources-loader': {
  12. preProcessor: 'scss',
  13. patterns: [path.resolve(__dirname, './src/styles/global.scss')]
  14. }
  15. },
  16. configureWebpack: {
  17. resolve: {
  18. alias: {
  19. type: path.resolve(__dirname, './server/src/client-server-shared/type'),
  20. const: path.resolve(
  21. __dirname,
  22. './server/src/client-server-shared/const'
  23. )
  24. }
  25. }
  26. }
  27. };