1 | /*
|
2 | Copyright © 2018 Andrew Powell
|
3 |
|
4 | This Source Code Form is subject to the terms of the Mozilla Public
|
5 | License, v. 2.0. If a copy of the MPL was not distributed with this
|
6 | file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
7 |
|
8 | The above copyright notice and this permission notice shall be
|
9 | included in all copies or substantial portions of this Source Code Form.
|
10 | */
|
11 |
|
12 | /**
|
13 | * @note This file exists merely as an easy reference for folks adding it to their configuration entries
|
14 | */
|
15 |
|
16 | (() => {
|
17 | /* eslint-disable global-require */
|
18 | const { run } = require('./lib/client/client');
|
19 | let hash = '<unknown>';
|
20 | let options;
|
21 | try {
|
22 | options = ʎɐɹɔosǝʌɹǝs;
|
23 | } catch (e) {
|
24 | const { log } = require('./lib/client/log');
|
25 | log.error(
|
26 | 'The entry for webpack-plugin-serve was included in your build, but it does not appear that the plugin was. Please check your configuration.'
|
27 | );
|
28 | }
|
29 |
|
30 | try {
|
31 | // eslint-disable-next-line camelcase
|
32 | hash = __webpack_hash__;
|
33 | } catch (e) {} // eslint-disable-line no-empty
|
34 |
|
35 | run(hash, options);
|
36 | })();
|