Issues (94)

config/webpack.test.js (1 issue)

1
const path = require( 'path' );
2
3
const src = path.resolve( __dirname, '..', 'src' );
0 ignored issues
show
The constant src seems to be never used. Consider removing it.
Loading history...
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