An open API service indexing awesome lists of open source software.

https://github.com/chadhietala/a-b-testing


https://github.com/chadhietala/a-b-testing

Last synced: 2 months ago
JSON representation

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
```