Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var getCommentsProcessor = require("./comments-processor");
- module.exports = {
- install: function(less, pluginManager) {
- var CommentsProcessor = getCommentsProcessor(less);
- pluginManager.addPostProcessor(new CommentsProcessor());
- }
- };
- var cleaner = require('./clean-css-master/lib/text/comments-processor');
- module.exports = function(less) {
- function CommentProcessor(options) {
- this.options = options || {};
- };
- CommentProcessor.prototype = {
- process: function (css) {
- var commentsProcessor = new cleaner('*', false);
- css = commentsProcessor.escape(css);
- return css;
- }
- };
- return CommentProcessor;
- };
- lessc --plugin=./less-plugin-remove-comments.js index.less
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement