Skip to content

Instantly share code, notes, and snippets.

const path = require('path');
const webpack = require('webpack');
const validate = require('webpack-validator');
const merge = require('webpack-merge');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
// ENV Variables
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"blacklist": [],
"optional": [
"runtime",
"optimisation.modules.system"
]
},
'use strict'
/************************************
* Configure build directory structure
************************************/
const buildDir = './dist';
const staticAssetsDir = `${buildDir}/static`;
const cssDir = `${staticAssetsDir}/css`;
const jsDir = `${staticAssetsDir}/js`;
const imgDir = `${staticAssetsDir}/img`;
{
"link_template": "http://api.rottentomatoes.com/api/public/v1.0/lists/dvds/top_rentals.json?limit={num-results}&country={country-code}",
"links": {
"alternate": "http://www.rottentomatoes.com/dvd/top_rentals",
"self": "http://api.rottentomatoes.com/api/public/v1.0/lists/dvds/top_rentals.json?limit=20&country=us"
},
"movies": [
{
"abridged_cast": [
{
{
"link_template": "http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?limit={num-results}&country={country-code}",
"links": {
"alternate": "http://www.rottentomatoes.com/movie/box-office/",
"self": "http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?limit=20&country=us"
},
"movies": [
{
"abridged_cast": [
{