Skip to content

proposed BASE_PATH for webpack config.#4643

Closed
chrisgarrity wants to merge 1 commit intoscratchfoundation:scratch-desktop-updatefrom
chrisgarrity:scratch-desktop-update
Closed

proposed BASE_PATH for webpack config.#4643
chrisgarrity wants to merge 1 commit intoscratchfoundation:scratch-desktop-updatefrom
chrisgarrity:scratch-desktop-update

Conversation

@chrisgarrity
Copy link
Contributor

I made these changes to the webpack config, and tried them with my local-www. So that part works. I didn't get to trying it with android (rebuilding gui with BASE_PATH="" as part of the build)

This is a PR on a PR, so I'm not sure what to label it :)

Also feel free to close if you find a better solution.

var postcssVars = require('postcss-simple-vars');
var postcssImport = require('postcss-import');

const BASE_PATH = process.env.BASE_PATH || '/';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Judging by the way it's used, it looks like this might be more convenient / descriptive:

Suggested change
const BASE_PATH = process.env.BASE_PATH || '/';
const STATIC_PATH = process.env.STATIC_PATH || '/static';

I defer to {@chrisG, @paulkaplan, @rschamp}'s opinion though ;)

@chrisgarrity
Copy link
Contributor Author

Closing in favor of #4646

@chrisgarrity chrisgarrity deleted the scratch-desktop-update branch March 13, 2019 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants