Gulp plugin that tracks dependencies between files and adds any files that depend on the files currently in the stream, thus enabling incremental build.
14
stars
5
forks
source link
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory #14
Added gulp-dependents to gulpfile:
styles() processes index.scss
index.cscc imports other files and bootstrap. below is the link to repository and commit
Settings:
var config = {
".scss": {
// The sequence of RegExps and/or functions to use when parsing
// dependency paths from a source file. Each RegExp must have the
// 'gm' modifier and at least one capture group. Each function must
// accept a string and return an array of captured strings. The
// strings captured by each RegExp or function will be passed
// to the next, thus iteratively reducing the file content to an
// array of dependency file paths.
parserSteps: [
// PLEASE NOTE:
// The parser steps shown here are only meant as an example to
// illustrate the concept of the matching pipeline.
// The default config used for scss files is pure RegExp and
// reliably supports the full syntax of scss import statements.
// Match the import statements and capture the text
// between '@import' and ';'.
/^\s*@import\s+(.+?);/gm,
// Split the captured text on ',' to get each path.
function (text) { return text.split(","); },
// Match the balanced quotes and capture only the file path.
/"([^"]+)"|'([^']+)'/m
],
// The file name prefixes to try when looking for dependency
// files, if the syntax does not require them to be specified in
// dependency statements. This could be e.g. '_', which is often
// used as a naming convention for mixin files.
prefixes: ['_'],
// The file name postfixes to try when looking for dependency
// files, if the syntax does not require them to be specified in
// dependency statements. This could be e.g. file name extensions.
postfixes: ['.scss', '.sass'],
// The additional base paths to try when looking for dependency
// files referenced using relative paths.
basePaths: [],
}
};
Added gulp-dependents to gulpfile: styles() processes index.scss index.cscc imports other files and bootstrap. below is the link to repository and commit Settings:
https://github.com/quanty-zero/online-clothing-store/commit/32b14dfca683ee686a5f51af92c5920f8f41d77c