Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan Zhu <picturepan2@hotmail.com>2020-07-02 05:50:26 +0300
committerYan Zhu <picturepan2@hotmail.com>2020-07-02 05:50:26 +0300
commitc43d27d4fa55fb955f4aae43e198a6051afde356 (patch)
tree3e7d76636f12f5da73ec986331042479ac2b5865
parentf1dd7a8c39f5275b777ba7524c85906530c01cc3 (diff)
Update prefix docs
-rw-r--r--docs/getting-started/custom.html13
-rw-r--r--docs/src/getting-started/custom.pug13
2 files changed, 16 insertions, 10 deletions
diff --git a/docs/getting-started/custom.html b/docs/getting-started/custom.html
index 8d3cf4d..e5ce558 100644
--- a/docs/getting-started/custom.html
+++ b/docs/getting-started/custom.html
@@ -392,11 +392,14 @@
<p>To add <code>spectre-</code> to all classes, you can add the Gulp task to <code>gulpfile.js</code> file.</p>
<pre class="code"><code><span class="hljs-keyword">var</span> cssPrefix = <span class="hljs-built_in">require</span>(<span class="hljs-string">'gulp-css-prefix'</span>);
-gulp.task(<span class="hljs-string">'prefix'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
- gulp.src(<span class="hljs-string">'./dist/*.css'</span>)
- .pipe(cssPrefix(<span class="hljs-string">'spectre-'</span>))
- .pipe(gulp.dest(<span class="hljs-string">'./dist'</span>))
-});
+<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">prefix</span>(<span class="hljs-params"></span>) </span>{
+ <span class="hljs-keyword">return</span> gulp
+ .src(<span class="hljs-string">'./dist/*.css'</span>)
+ .pipe(cssPrefix(<span class="hljs-string">'spectre-'</span>))
+ .pipe(gulp.dest(<span class="hljs-string">'./dist'</span>));
+}
+
+exports.prefix = prefix;
</code></pre>
<p>After you compile your version of Spectre in the /dist, run <code>gulp prefix</code> in the directory of Spectre.</p>
<div class="docs-ad docs-ad-sidebar text-center">
diff --git a/docs/src/getting-started/custom.pug b/docs/src/getting-started/custom.pug
index 36a1753..12817fa 100644
--- a/docs/src/getting-started/custom.pug
+++ b/docs/src/getting-started/custom.pug
@@ -279,11 +279,14 @@ block docs-content
:highlight(lang="JavaScript")
var cssPrefix = require('gulp-css-prefix');
- gulp.task('prefix', function() {
- gulp.src('./dist/*.css')
- .pipe(cssPrefix('spectre-'))
- .pipe(gulp.dest('./dist'))
- });
+ function prefix() {
+ return gulp
+ .src('./dist/*.css')
+ .pipe(cssPrefix('spectre-'))
+ .pipe(gulp.dest('./dist'));
+ }
+
+ exports.prefix = prefix;
p
| After you compile your version of Spectre in the /dist, run