example/webpack.config.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 36
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 36
rs 10
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
const path = require('path')
2
const webpack = require('webpack')
3
4
module.exports = {
5
//	Context: path.resolve(__dirname, './'),
6
	entry: {
7
		example: ['webpack-hot-middleware/client?reload=true', './example/index.js']
8
	},
9
	output: {
10
		path: path.normalize(path.resolve(__dirname, './')),
11
		filename: '[name].build.js',
12
		publicPath: '/'
13
	},
14
	module: {
15
		rules: [
16
			{
17
				test: /\.vue$/,
18
				use: 'vue-loader'
19
			},
20
			{
21
				test: /\.js$/,
22
				exclude: /node_modules/,
23
				use: 'babel-loader'
24
			}
25
		]
26
	},
27
	plugins: [
28
		new webpack.HotModuleReplacementPlugin(),
29
		new webpack.DefinePlugin({
30
			'process.env': {
31
				NODE_ENV: '"development"'
32
			}
33
		})
34
	],
35
	devtool: 'source-map'
36
}
37