| Total Complexity | 0 |
| Complexity/F | 0 |
| Lines of Code | 37 |
| Function Count | 0 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const path = require( 'path' ); |
||
| 2 | |||
| 3 | const src = path.resolve( __dirname, '..', 'src' ); |
||
|
|
|||
| 4 | |||
| 5 | module.exports = { |
||
| 6 | // mode: 'development', |
||
| 7 | |||
| 8 | // Karma watches the test entry points |
||
| 9 | // (you don't need to specify the entry option) |
||
| 10 | // webpack watches dependencies |
||
| 11 | // webpack configuration |
||
| 12 | module: { |
||
| 13 | rules: [ |
||
| 14 | { |
||
| 15 | test: /\.js$/, |
||
| 16 | exclude: /node_modules/, |
||
| 17 | loader: 'babel-loader', |
||
| 18 | options: { |
||
| 19 | presets: [ '@babel/preset-env' ] |
||
| 20 | } |
||
| 21 | }, |
||
| 22 | { |
||
| 23 | test: /\.svg$/, |
||
| 24 | loader: 'svg-inline-loader' |
||
| 25 | }, |
||
| 26 | { |
||
| 27 | test: /\.(scss|css|html|ejs)$/, |
||
| 28 | use: [ |
||
| 29 | { |
||
| 30 | loader: 'raw-loader' |
||
| 31 | } |
||
| 32 | ] |
||
| 33 | } |
||
| 34 | ] |
||
| 35 | } |
||
| 36 | |||
| 37 | }; |
||
| 38 |