This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
{ | |
"root": true, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:import/errors", | |
"plugin:import/warnings" | |
], | |
"parserOptions": { | |
"ecmaVersion": 7, | |
"sourceType": "module" |
var webpack = require('webpack'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var deepMerge = require('deep-merge'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
// BEGIN CONFIG TOOLS | |
// Set up config merging function. | |
var merge = deepMerge(function(target, source, key) { |
“scripts”: { | |
“update:packages”: “node wipe-dependencies.js && | |
rm -rf node_modules && npm update --save-dev | |
&& npm update --save” | |
}, |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ [email protected]
added 1 package, removed 20 packages and updated 4 packages in 13.081s
(function(f) { | |
if (typeof exports === "object" && typeof module !== "undefined") { | |
module.exports = f() | |
} else if (typeof define === "function" && define.amd) { | |
define([], f) | |
} else { | |
var g; | |
if (typeof window !== "undefined") { | |
g = window | |
} else if (typeof global !== "undefined") { |
function median(values) { | |
values.sort( function(a,b) {return a - b;} ); | |
var half = Math.floor(values.length/2); | |
if(values.length % 2) | |
return values[half]; | |
else | |
return (values[half-1] + values[half]) / 2.0; |
function isPrime(n, hn) { | |
if (hn === 0 || n === 1) { | |
return true; | |
} | |
hn = hn || parseInt(n / 2); | |
if (n % hn === 0 && hn !== 1) { | |
return false; | |
} else { | |
return isPrime(n, hn - 1); | |
} |
function isPrime(n, hn) { | |
if (hn === 0 || n === 1) { | |
return true; | |
} | |
hn = hn || parseInt(n / 2); | |
if (n % hn === 0 && hn !== 1) { | |
return false; | |
} else { | |
return isPrime(n, hn - 1); | |
} |
for (var i=1; i <= 20; i++) | |
{ | |
if (i % 15 == 0) | |
console.log("FizzBuzz"); | |
else if (i % 3 == 0) | |
console.log("Fizz"); | |
else if (i % 5 == 0) | |
console.log("Buzz"); | |
else | |
console.log(i); |