Skip to content

Instantly share code, notes, and snippets.

View satishgowda28's full-sized avatar
🎯
Focusing

Satish Gowda satishgowda28

🎯
Focusing
View GitHub Profile
if(!window.isLogin){
System.import('./auth.js').then((response)=>{
response.init();
})
}
module.export = {
entry: {
},
output: {
},
pluigns: [
new webpack.optimize.CommonsChunkPlugin({
name: "vendor",
filename:'common.js',
}),
module.exports = {
devtool:"source-map",
externals:{
'jquery':'jQuery'
},
target:'web',
entry:{
home:'./app/home.js',
feed:'./app/feed.js',
inspire:'../app/inspire.js',
module.exports = {
entry:{
pageOne: './src/pageOne/index.js',
pageTwo: './src/pageTwo/index.js',
pageThree: './src/pageThree/index.js'
},
output: {
path: __dirname + "/dist",
filename: "styfi.bundle.js"
}
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
@satishgowda28
satishgowda28 / normalized.html
Created October 19, 2012 18:48 — forked from scottkellum/normalized.html
pixel normalization
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>