-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoi.config.js.example
49 lines (48 loc) · 1.29 KB
/
poi.config.js.example
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
48
49
var path = require('path')
var UglifyJsPlugin = require('uglifyjs-webpack-plugin')
module.exports = (options, req) => ({
env: {
APP_NAME: 'Jungle Oats',
APP_ENV: 'local',
APP_DEBUG: 'true',
FACEBOOK_APP_ID: 170518933603501,
TWITTER_POPUP_WIDTH: 550,
TWITTER_POPUP_HEIGHT: 445,
BREAKPOINT_TABLET: 1100,
BREAKPOINT_MOBILE: 500,
// API_BASE_URL: 'https://jungleoatsweb.liqstage.co.za/cms/wp-admin/',
// API_SEARCH_BASE_URL: 'https://jungleoatsweb.liqstage.co.za/'
},
html: {
filename: (options.mode === 'production') ? '../../resources/views/index.blade.php' : 'index.html',
template: './html/index.ejs'
},
dist: '../public/assets/',
copy: false,
webpack(config) {
if (options.mode === 'production') {
config.output.publicPath = '/assets/'
config.plugins.push(new UglifyJsPlugin({
uglifyOptions: {
comments: false,
compress: {
warnings: false,
drop_console: true
}
}
}))
}
config.resolve.alias = {
'@': path.resolve(__dirname)
}
config.module.rules.push({
test: /\.(pdf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: 'assets/pdf/[name].[hash:8].[ext]'
}
})
return config
}
})