-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building static either excludes css/js or includes it twice #31
Comments
In terms of the
The interactivity is all broken. When rebuilding, I also have to |
Are you running the code in branch: master? |
After doing a
I have the client interactivity back, so perhaps I had a broken or old installation. I still have the issue where a bigger static website is failing to build properly, the log has errors about the lasso-slot:head timing out, see the attached output. |
If this can help someone ... the way I am able to publish my static site is to follow the following very hacky and manual procedure:
|
I'm running into the same issue. 😢 |
I had some luck. I learnt that you can manually specifiy for the static files to be added to the dist folder by adding For example const isProduction = process.env.NODE_ENV === 'production';
module.exports = require("marko-starter").projectConfig({
name: "marko-starter-demo", // Optional, but added here for demo purposes
lassoConfig: {
plugins: [
'lasso-marko',
{
plugin: 'lasso-postcss',
config: {
map: isProduction ? false : 'inline',
},
},
],
outputDir: __dirname + '/dist/',
},
}); The only issue now is that Lasso doesn't seem to be processing PostCSS styles when I run the build command. |
I'm having an issue to build a static website using marko-starter. The site runs beautifully when running through
marko-starter server
, but when I try to build a static version, the generated html includes no css in the<head/>
section. I then add the<lasso-head/>
to see the same css reference loaded twice. The same applies to the js references in the<body/>
: nothing appears without the<lasso-body/>
and its referenced twice with it. Strangely I don't see any of theonMount
code running in the static site either, tried to console.log without success.In the
marko-starter build
output I get the following errors, but don't know if it might be related:The text was updated successfully, but these errors were encountered: