-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcooking.conf.js
42 lines (39 loc) · 931 Bytes
/
cooking.conf.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
var path = require('path');
var cooking = require('cooking');
cooking.set({
entry: {
app: ['babel-polyfill', './src/main.js']
},
dist: './dist',
template: './index.tpl',
devServer: {
port: 8808,
publicPath: '/'
// proxy: {
// '/proxy/*': {
// target: 'http://bbs.ngacn.cc/thread.php?fid=-7&page=1&lite=js',
// pathRewrite: {'^/proxy/(.*)$' : ''},
// changeOrigin: true,
// secure: false
// }
// }
},
// production
clean: true,
hash: true,
sourceMap: true,
minimize: true,
chunk: true, // see https://cookingjs.github.io/zh-cn/configuration.html#chunk
postcss: [
// require('...')
],
publicPath: 'dist/',
assetsPath: 'static',
urlLoaderLimit: 10000,
extractCSS: '[name].[contenthash:7].css',
alias: {
'src': path.join(__dirname, 'src')
},
extends: ['vue2', 'autoprefixer']
});
module.exports = cooking.resolve();