Rename files

This commit is contained in:
Alexandre Vicenzi 2020-04-20 22:56:30 +02:00
parent 1f7188db3b
commit 6b87efa507
4 changed files with 3 additions and 3 deletions

View file

@ -18,12 +18,12 @@ gulp.task('less', function () {
}); });
gulp.task('uglify', function () { gulp.task('uglify', function () {
return gulp.src('./static/dark_theme/dark_theme.js') return gulp.src('./static/dark-theme/dark-theme.js')
.pipe(uglify()) .pipe(uglify())
.pipe(rename({ .pipe(rename({
extname: '.min.js' extname: '.min.js'
})) }))
.pipe(gulp.dest('./static/dark_theme')); .pipe(gulp.dest('./static/dark-theme'));
}); });
gulp.task('cp', function () { gulp.task('cp', function () {

View file

@ -13,7 +13,7 @@
browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe) browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe)
}} }}
<script id="dark-theme-script" <script id="dark-theme-script"
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/dark_theme/dark_theme.min.js" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/dark-theme/dark-theme.min.js"
data-enable-auto-detect-theme="{{ THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE|default('false') }}" data-enable-auto-detect-theme="{{ THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE|default('false') }}"
data-default-theme="{{ THEME_COLOR|default('light') }}" data-default-theme="{{ THEME_COLOR|default('light') }}"
type="text/javascript"> type="text/javascript">