npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
| // | |
| // GLSL textureless classic 3D noise "cnoise", | |
| // with an RSL-style periodic variant "pnoise". | |
| // Author: Stefan Gustavson (stefan.gustavson@liu.se) | |
| // Version: 2011-10-11 | |
| // | |
| // Many thanks to Ian McEwan of Ashima Arts for the | |
| // ideas for permutation and gradient selection. | |
| // | |
| // Copyright (c) 2011 Stefan Gustavson. All rights reserved. |
| const createStore = (reducer, initialState) => { | |
| const subscribers = []; | |
| let currentState = initialState; | |
| return { | |
| getState: () => currentState, | |
| subscribe: fn => { | |
| subscribers.push(fn); | |
| fn(currentState); | |
| }, |