SHARE
TWEET

Untitled

a guest Jun 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const svgRule = config.module.rule('svg');
  2. svgRule.oneOf('inline').use('vue-svg-loader').loader('vue-svg-loader').end();
  3.      
  4. const svgRule = config.module.rule('svg');
  5. svgRule.oneOf('inline').use('vue-svg-loader').loader('vue-svg-loader').end();
  6.      
  7. moduleFileExtensions: [
  8.     'js',
  9.     'vue',
  10.   ],
  11.   transform: {
  12.     '^.+\.vue$': 'vue-jest',
  13.     '^.+\.js$': '<rootDir>/babel-jest',
  14.     '.+\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2|svg)$': 'jest-transform-stub',
  15.   },
  16.   moduleNameMapper: {
  17.     '^@/(.*)$': '<rootDir>/src/$1',
  18.   },
  19.      
  20. import Img from '@/assets/icons/img.svg?inline';
  21.      
  22. Could not locate module @/assets/icons/circle-small.svg?inline mapped as:
  23. /some/src/assets/icons/circle-small.svg?inline.
  24.  
  25. Please check your configuration for these entries:
  26. {
  27.   "moduleNameMapper": {
  28.     "/^@/(.*)$/": "/some/src/$1"
  29.   },
  30.   "resolver": null
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top