Skip to content

Instantly share code, notes, and snippets.

💉
*

Mehmet Burak Erman mburakerman

💉
*
Block or report user

Report or block mburakerman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mburakerman
mburakerman / gulpfile.js
Last active Jun 14, 2019
gulp concat (join all js files into one file)
View gulpfile.js
var gulp = require("gulp");
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('scripts', function (done) {
gulp.src(['assets/js/jquery.js', 'assets/js/funds.js', 'assets/js/main.js'])
.pipe(concat('all.js'))
.pipe(uglify())
.pipe(gulp.dest('dist/'))
View line.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mburakerman
mburakerman / package.json
Last active Jun 12, 2019
Webpack 4 config.js (Stylus to CSS and Babel) 👌 The Simplest Usage 👌
View package.json
{
"name": "webpack-stylus",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
View loader.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mburakerman
mburakerman / package.json
Last active Apr 5, 2018
parcel bundler usage
View package.json
{
/* ..
.
*/
"scripts": {
"start": "parcel index.html",
"build": "parcel build index.html --public-url ./ --out-dir static"
}
/* ..
.
View .editorconfig
root = true
# for all languages
[*]
indent_style = space
indent_size = 2
# for javascript
[*.js]
indent_style = space
View line.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mburakerman
mburakerman / package.json
Last active Apr 6, 2018
Webpack 4 config.js (Postcss and Babel) 👌 The Simplest Usage 👌
View package.json
{
"name": "webpack-postcss,
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
View package.json
{
"name": "webpack-r",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack-dev-server", // start webpack-dev-server and enjoy live reload
"build:prod":"webpack -p" // minify and save bundle.js file
},
@mburakerman
mburakerman / package.json
Last active Aug 23, 2019
Webpack 4 config.js (SCSS to CSS and Babel) 👌 The Simplest Usage 👌
View package.json
{
"name": "webpack-sass",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
You can’t perform that action at this time.