Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thescientist13/s3-plugin-webpack-testbed

A test bed for s3-plugin-webpack issue reporting
https://github.com/thescientist13/s3-plugin-webpack-testbed

Last synced: 9 days ago
JSON representation

A test bed for s3-plugin-webpack issue reporting

Awesome Lists containing this project

README

        

# s3-plugin-webpack-test-bed

## Overview
This a repo to demonstrate a (possible) bug with [s3-plugin-webpack](https://github.com/webpack-contrib/s3-plugin-webpack/) and its handling of certain paths, like images used in a `` HTML tag.

## Setup
1. Make sure you have NodeJS and npm or yarn already installed
1. Run `npm install` or `yarn install`

**Note: AWS credentials aren't actually needed for reproducing this issue**

## Test Case
Currently being observed is [this](https://github.com/webpack-contrib/s3-plugin-webpack/issues/83) issue with how image paths in `` HTML tags are not getting CDN-ized.

1. Run `yarn run release`
1. Look in the _build/_ directory and observe that in _index.html_ we see our `defaultCDNBase` from _webpack.config.release.js_ value used for our `` and `<style>` paths

```html
<!DOCTYPE html>
<html lang="en">

<head>

<title>S3 Webpack Plugin Test Bed</title>

<link href="http://123fakepath.cloudfront.net/index.a85dc37e5d2d363f48cd432bc2fddd5a.css" rel="stylesheet"></head>

<body>

<section id="bootstrap">

</section>

<script type="text/javascript" src="http://123fakepath.cloudfront.net/common.a226870440a26715faee.bundle.js">