-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.development.js
47 lines (46 loc) · 1.05 KB
/
webpack.config.development.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const webpack = require('webpack')
const merge = require('webpack-merge')
const base = require('./webpack.config.base')
const StylelintPlugin = require('stylelint-webpack-plugin')
module.exports = merge(base, {
entry: [
'webpack/hot/dev-server',
'babel-polyfill',
'./src/main.js'
],
devtool: '#source-map',
plugins: [
new webpack.HotModuleReplacementPlugin(),
new StylelintPlugin({
files: [ 'src/stylesheets/*.css', '**/*.vue' ]
})
],
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
'css-loader?importLoaders=1',
'postcss-loader'
]
}, {
test: /\.vue$/,
use: [{
loader: 'vue-loader',
options: {
loaders: {
js: 'babel-loader!eslint-loader',
postcss: [
'vue-style-loader',
'style-loader',
'css-loader?importLoaders=1',
'postcss-loader'
]
}
}
}]
}
]
}
})