This is an example to my article “How webpack’s ContextReplacementPlugin works”
You have the moment.js library, and you have a dynamic import:
require('./locale/' + name + '.js')| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Document</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
| import React, { Component } from "react"; | |
| class ClockWatcher extends Component { | |
| canvas = ""; | |
| ctx = ""; | |
| radius = ""; | |
| constructor(props) { | |
| super(props); | |
| this.state = { date: new Date(), |
This is an example to my article “How webpack’s ContextReplacementPlugin works”
You have the moment.js library, and you have a dynamic import:
require('./locale/' + name + '.js')| "use strict"; | |
| // Application variables | |
| var area, txt; | |
| var fontsize = 18; | |
| var s = { INIT: 1, PLAY: 2, PAUSED: 3, END: 4 }; | |
| var iplay, previplay, playstate = s.INIT; | |
| var start, end; | |
| var msg = null; | |
| var imsg; | |
| var voices = []; |
| var build = []; | |
| var anwPool = []; | |
| var _RANDOM_QUESTION_EXTEND_ = 2; | |
| var QUES_COL = 2 | |
| var ANS_COL = 0 | |
| var EX_COL = 1 | |
| function random_sort(a, b) { | |
| return 0.5 - Math.random(); | |
| } |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| using System.IO; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace ConsoleApplication | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
| # Remote, Office Not Required | |
| ## The Time is Right for Remote Work | |
| ### Why work doesn't happen at work | |
| The office during the day has become the last place people want to be when then | |
| really want to get work done. | |
| Offices have become interruption factories: it's just one interruption after |