koga73 / gatsby-plugin-tidy Goto Github PK
View Code? Open in Web Editor NEWCleans up Gatsby's public directory organizing js/css into folders!
License: MIT License
Cleans up Gatsby's public directory organizing js/css into folders!
License: MIT License
Hi, I'm trying to use your plugin and it looks pretty good, I just have one issue: my static images are deleted. The /public/ dir has no /static/ subdir after building.
If I try to launch gatsby build --prefix-paths
I get the following error which seems related:
failed Building production JavaScript and CSS bundles - 23.500s
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
Can't resolve '../../public/static/d/2612610553.json' in '/Users/corentinsmith/projects/dashdoc-static-website/src/hooks'
I am getting an odd CSS path for my styles and i am losing my SRI tag with css, JS links work fine..
Before adding the plugin, its shows
<style data-href=/styles.69954be9a2ab72042903.css integrity="sha512-E3TsE+4m0iXnjl4zpQcJag52+GrWr+vN4J7v7rTmZHNiN8lm22OiWLsofKr7Mq2PtJNeNURLlg8tIYUIy0ukLw==">
However after adding the plugin settings..
<link href=/css/../css/styles.css rel=stylesheet>
This is my config settings in my gatsby-config.js
{
resolve: "gatsby-plugin-tidy",
options: {
cleanPublic: true,
removeHashes: true,
removeArtifacts: true,
noJsMap: true,
removeInlineStyles: true,
jsDir: "js",
cssDir: "css"
}
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.