Gathering detailed insights and metrics for foundation-sites-loader
Gathering detailed insights and metrics for foundation-sites-loader
Gathering detailed insights and metrics for foundation-sites-loader
Gathering detailed insights and metrics for foundation-sites-loader
npm install foundation-sites-loader
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
4 Commits
4 Forks
1 Watchers
1 Branches
1 Contributors
Updated on May 19, 2020
Latest Version
1.0.1
Package Id
foundation-sites-loader@1.0.1
Size
6.65 kB
NPM Version
3.5.3
Node Version
4.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
Foundation configuration and loading package for webpack, using the npm packages foundation-sites
and sass-loader
.
Install from foundation-sites-loader on npm.
In a nutshell:
/node_modules/foundation-sites
.Note, foundation-sites
must be installed locally inside of ../node_modules
or a parent directories node_modules
directory relative to the loaded config file.
The version of foundation-sites used is listed in peerDependencies, so you should be able to use whichever version you like.
Simply specify that version of foundation-sites
in your package.json
, like this:
"foundation-sites": "~6.1.2"
To use the complete foundation package including styles and scripts with the default settings:
1require("foundation-sites-loader");
The disadvantage to using this setup is that you can't:
foundation-sites.config.js
to your project. You will specify the file path in the require
statement.preFoundationCustomizations
and foundationCustomizations
, and your main Sass file that can depend on Foundation variables, plus your customizations.
Any of these 3 files are optional. You may also remove any Sass or Js modules that you don't need.Next, you should specify this as an entry point:
module.exports = {
entry: [
"foundation-sites!./path/to/foundation-sites.config.js"
]
Or a dependency within a file, like you'd specify other webpack dependencies:
1require("foundation-sites!./path/to/foundation-sites.config.js");
foundation-sites.config.js
Here's a sample configuration file. The file included in the foundation-sites-loader git repo
has many more options. The two customization files, foundationCustomizations
and mainSass
are optional.
module.exports = {
foundationCustomizations: "./foundation-customizations.scss",
mainSass: "./main.scss", // path to your main SASS file (optional)
verbose: true, // print out your custom files used
debug: false, // print out the full generated scss file
styleLoader: "style-loader!css-loader!sass-loader", // see example for the ExtractTextPlugin
scripts: {
// add every foundation script you need
'foundation.core': true,
'foundation.accordion': true
},
styles: {
// add every foundation style you need
'mixins': true,
'normalize': true,
'print': true,
'glyphicons': true
}
};
module.exports = {
module: {
loaders: [
// **IMPORTANT** This is needed so that each foundation js file required by
// foundation-webpack has access to the jQuery object
{ test: /foundation\/js\//, loader: 'imports?jQuery=jquery' }
]
}
};
PATH=$(npm bin):$PATH webpack --config webpack.rails.config.js
Alternate, you can put $(npm bin) in your path. Basically if you run type webpack
and the path is your global one, then
you may have issues.
plugins: [
new ExtractTextPlugin("../stylesheets/foundation-and-customizations.css")
]
npm i foundation-sites
in the directory where you have the foundation-sites-loader
. This is because
the location of foundation-sites is found relative to the foundation-sites-loader
and if you linked it and it's not not
there, then you'll bet this error: "Error: Could not find path to foundation-sites. Check to see that it's in a parent
directory of config file containing node_modules/foundation-sites".Pull requests are welcome!
eslint .
release-it
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More