https://github.com/chadhietala/a-b-testing
https://github.com/chadhietala/a-b-testing
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chadhietala/a-b-testing
- Owner: chadhietala
- Created: 2019-03-07T20:12:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T20:18:27.000Z (over 6 years ago)
- Last Synced: 2025-02-10T08:23:19.275Z (4 months ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What This Does
This creates a mapping of evaluated a/b test treatments. Webpack will look at `import(...)` calls and see if the string is being interoplated. If it is, it will search up to the last static path and create a chunk file for each file in that directory. For example:
```js
import(`./treatments/${testName}/${treatment}.js`)
```This will keep all the modules within `treatments/` as loose modules, because the client code is going to dynamically import based on runtime information.
We already have an LiX based culture, where all features are LiX'd, so we should make the experience not only easy but also performant by default by encouraging a coupling of treatment to file.
# Serving
```
cd dist
``````
npx http-server
```or
```
yarn global add http-server
http-server
```