-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
23 lines (23 loc) · 1.96 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var getConfig = require('hjs-webpack')
var version = require('./package.json').version
var description = require('./package.json').description
module.exports = getConfig({ in : 'index.jsx',
out: '',
isDev: process.env.NODE_ENV !== 'production',
html: function (context) {
//ISDEV
if (process.env.NODE_ENV !== 'production') {
return {
'index.html': '<!doctype html>' + '<head>' +
'<title> Javascript Meetups en Chile </title>' +
'<meta charset="utf-8"/>' + '<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>' + "<link href='https://fonts.googleapis.com/css?family=Flamenco:400,300|Raleway:400,100|Fredericka+the+Great' rel='stylesheet' type='text/css'>" + '</head>' + '<body class="row no-margin">' + '</body>' + '<script src="https://maps.googleapis.com/maps/api/js?sensor=true"></script>' + '<script src="/app.js"></script>'
}
} else {
return {
'index.html': '<!doctype html>' + '<head>' +
'<title> Javascript Meetups en Chile </title>' +
'<meta charset="utf-8"/>' + '<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>' + '<link rel="stylesheet" href="/meetupjs.' + version + '.css"/>' + "<link href='https://fonts.googleapis.com/css?family=Flamenco:400,300|Raleway:400,100|Fredericka+the+Great' rel='stylesheet' type='text/css'>" + '</head>' + '<body class="row no-margin">' + '</body>' + '<script src="https://maps.googleapis.com/maps/api/js?sensor=true"></script>' + "<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-60352542-3', 'auto');ga('send', 'pageview');</script>" + '<script src="/meetupjs.' + version + '.js"></script>'
}
}
}
})