Skip to content

Commit

Permalink
fix css paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ademartini committed Jan 28, 2020
1 parent 1e30d5a commit 58f6763
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ server/config.json
server/config.test.json
coverage
.env
dist/*
!dist/.gitkeep
dist/*.js
dist/assets/*.css
tags
TAGS
data.json
Expand Down
2 changes: 1 addition & 1 deletion build/bundle.js

Large diffs are not rendered by default.

Empty file added dist/assets/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions lib/stylesheet.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const version = require('../package.json').version;

const CDN_BASE = `https://cdn.auth0.com/extensions/auth0-account-link-extension/${version}`;
const CDN_BASE = 'https://cdn.auth0.com/extensions/auth0-account-link-extension';
const LOCAL_BASE = '/css';

const getBase = useCDN => (useCDN ? CDN_BASE : LOCAL_BASE);

const generateHelper = (useCDN = false) => {
const extension = useCDN ? 'min.css' : 'css';
const extension = useCDN ? `${version}.min.css` : 'css';
const link = (filename) => {
const name = (filename || '').trim();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:integration": "mocha integration --recursive --timeout 50000",
"lint": "eslint .",
"serve:dev": "gulp run",
"client:build": "minify --clean public/css/link.css && minify --clean public/css/admin.css",
"client:build": "minify --clean --output dist/assets/link.$npm_package_version.min.css public/css/link.css && minify --clean --output dist/assets/admin.$npm_package_version.min.css public/css/admin.css",
"extension:build": "a0-ext build:server ./webtask.js ./dist && cp ./dist/auth0-account-link.extension.$npm_package_version.js ./build/bundle.js",
"build": "yarn run client:build && yarn run extension:build"
},
Expand Down
1 change: 0 additions & 1 deletion public/css/admin.min.css

This file was deleted.

2 changes: 0 additions & 2 deletions public/css/link.min.css

This file was deleted.

0 comments on commit 58f6763

Please sign in to comment.