Coder Social home page Coder Social logo

Comments (7)

hutchgrant avatar hutchgrant commented on June 3, 2024

I don't think it ever supported custom publicPaths other than the default '/'. Though consideration was made for it within our 404 and index templates. But now that it's consolidated and available under the config, this feature is needed.

from greenwood.

thescientist13 avatar thescientist13 commented on June 3, 2024

but it's there in config.js?
https://github.com/ProjectEvergreen/greenwood/blob/master/packages/cli/lib/config.js#L31

from greenwood.

thescientist13 avatar thescientist13 commented on June 3, 2024

will look at as I / after working on #66 , which now makes the case easy to reproduce. Just compare having a custom greenwood.config.js

// bueno
module.exports = {};

// no bueno
module.exports = {
  publicPath: '/owen'
}

and running

$ yarn build
$ cat ./public/index.html

and compare the output

from greenwood.

thescientist13 avatar thescientist13 commented on June 3, 2024

This seems to be the offending publicPath, in webpack.config.common.js
https://github.com/ProjectEvergreen/greenwood/blob/master/packages/cli/config/webpack.config.common.js#L42

output: {
  path: context.publicDir,
  filename: '[name].[hash].bundle.js',
  publicPath: '/' // config.publicPath
},

will serialize even when publicPath is set in greenwood.config.js

It seem the webpack output is the same in .greenwood/, so seems to be isolated to just the serialize part of the pipeline.

from greenwood.

thescientist13 avatar thescientist13 commented on June 3, 2024

Ok, seems to be related to the interplay between setting output.path and output.publicPath, think I might have a handle on it

from greenwood.

hutchgrant avatar hutchgrant commented on June 3, 2024

Did this get resolved yet? I don't see a PR for this issue.

from greenwood.

thescientist13 avatar thescientist13 commented on June 3, 2024

Still open. Was hoping getting #74 in first would help with debugging

from greenwood.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.