Skip to content

Instantly share code, notes, and snippets.

@sharvit
sharvit / webpack-stats-check.md
Created December 27, 2017 09:02
How to check webpack stats in foreman
  1. Get webpack stats into json file
NODE_ENV=production ./node_modules/.bin/webpack --config config/webpack.config.js --json > stats.json
  1. Upload your stats.json file to webpack-visualizer
@sharvit
sharvit / init.coffee
Last active June 28, 2022 15:22
My atom editor settings. automatic update by http://atom.io/packages/sync-settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@sharvit
sharvit / server.js
Created July 2, 2016 04:06
node.js micro service to run production angular app
(function() {
'use strict';
// use new relic if license key exists
if (typeof process.env.NEW_RELIC_LICENSE_KEY === 'string') {
require('newrelic');
}
var express = require('express'),
(function() {
'use strict';
angular
.module('app.services')
.factory('$ionicPlatformManager', $ionicPlatformManager)
;
/* @ngInject */