Skip to content

Instantly share code, notes, and snippets.

View zaidaldabbagh's full-sized avatar

Zaid Al-Dabbagh zaidaldabbagh

View GitHub Profile
@zaidaldabbagh
zaidaldabbagh / webpack-example.config.js
Last active November 13, 2018 20:32
Example webpack.config.js for webpack setup — See zaidaldabbagh.com/blog/webpack-setup
const path = require('path');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const devMode = process.env.NODE_ENV !== 'production'
module.exports = {
entry: ['./js/index.js', './scss/style.scss'],
plugins: [
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
@zaidaldabbagh
zaidaldabbagh / components.json
Last active November 13, 2018 20:34
AngularJS Load App Data from JSON — See zaidaldabbagh.com/blog/loading-app-data-from-json-in-angularjs
{
"banner": {
"image": {
"source": "ClientApp/dist/images/nz-fern.jpg"
},
"content": {
"color": "#ffffff",
"heading": "MPI Animal & Plant Import Permits",
"title": "Growing and protecting New Zealand",
"subtitle": "A permit is required to import live animals and plants, and specifie d animal products and plant products. A permit is also required for animals transiting through New Zealand. The requirement for a permit is included in the import health standard for that commodity.",