Skip to content

Instantly share code, notes, and snippets.

import multiply from './multiply';
import sum from './sum';
// import the CSS we want to use here
import './math_output.css';
const totalMultiply = multiply(5, 3);
const totalSum = sum(5, 3);
// create the body
import multiply from './multiply';
import sum from './sum';
const totalMultiply = multiply(5, 3);
const totalSum = sum(5, 3);
// create the body
const body = document.createElement("body");
document.documentElement.appendChild(body);
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist/'),
filename: 'bundle.js'
},
module: {
loaders: [
{
import multiply from './multiply';
import sum from './sum';
const totalMultiply = multiply(5, 3);
const totalSum = sum(5, 3);
console.log(`Product of 5 and 3 = ${totalMultiply}`);
console.log(`Sum of 5 and 3 = ${totalSum}`);
// the webpack bootstrap
(function (modules) {
// The module cache
var installedModules = {};
// The require function
function __webpack_require__(moduleId) {
// Check if module is in cache
// Create a new module (and put it into the cache)
// Execute the module function
// Flag the module as loaded
<html>
<head>
<script src="./dist/bundle.js""></script>
</head>
</html>
<html>
<head>
<script src="src/sum.js"></script>
<script src="src/multiply.js"></script>
<script src="src/index.js"></script>
</head>
</html>
# just the current directory name - not the full path
PathShort="\W";
# round brackets surround the Git output
# I prefer them to square brackets - I couldn't tell you why ;-)
GIT_PROMPT_PREFIX="(" # start of the git info string
GIT_PROMPT_SUFFIX=")" # the end of the git info string
# change a couple of the colours to be inline with what I've configured in Git
GIT_PROMPT_CHANGED="${Green}✚ " # the number of changed files
<template>
<ag-grid-vue class="ag-theme-fresh grid"
:gridOptions="gridOptions"
:rowData="rowData"
:rowClicked="onRowClicked"
:rowDataChanged="onRowDataChanged">
</ag-grid-vue>
</template>
<script>
import Vue from "vue";
<template>
<ag-grid-vue class="ag-theme-fresh grid"
:gridOptions="gridOptions"
:rowData="rowData"
:rowClicked="onRowClicked"
:rowDataChanged="onRowDataChanged">
</ag-grid-vue>
</template>
<script>
import Vue from "vue";