From 21b445b81d8dcd063cbcaf6161a756f3656da74d Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 14 Mar 2018 20:52:53 -0700 Subject: [PATCH] Fix webamp.org --- .travis.yml | 1 + CNAME | 1 - webpack.production.config.js | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 CNAME diff --git a/.travis.yml b/.travis.yml index d186fd69..38282976 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ script: > # python node_modules/travis-weigh-in/weigh_in.py built/winamp.js.gz after_success: - bash <(curl -s https://codecov.io/bash) +before_deploy: echo webamp.org > built/CNAME deploy: local-dir: "./built/" verbose: true diff --git a/CNAME b/CNAME deleted file mode 100644 index a59f1f3e..00000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -webamp.org \ No newline at end of file diff --git a/webpack.production.config.js b/webpack.production.config.js index 1875b258..de80a48c 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -2,8 +2,6 @@ const webpack = require("webpack"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const config = require("./webpack.config"); -const cdnUrl = process.env.CDN_URL || "/"; - config.devtool = "source-map"; config.plugins = [ @@ -23,7 +21,7 @@ config.plugins = [ }) ]; -config.output.publicPath = `${cdnUrl}/`; +config.output.publicPath = `/`; config.output.filename = "[name]-[hash].js"; config.entry.winamp.unshift("./js/googleAnalytics.min.js");