Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thescientist13/s3-plugin-webpack-testbed
- Owner: thescientist13
- Created: 2017-08-24T15:12:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T18:29:51.000Z (about 7 years ago)
- Last Synced: 2024-10-06T23:21:29.388Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://github.com/webpack-contrib/s3-plugin-webpack/
- Size: 396 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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">