Skip to content

Instantly share code, notes, and snippets.

View Khangeldy's full-sized avatar
🌄
Kettim baska jaka

Khangeldy Khangeldy

🌄
Kettim baska jaka
  • Kazakhstan, Almaty
View GitHub Profile
@Khangeldy
Khangeldy / webpack.config.js
Created October 21, 2016 09:54 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity