問題タブ [uncss]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - uncss、.no-'string'、.is-'string' の正規表現パターン
私はいくつかの正規表現の問題を抱えています。
gulp-uncss の使用
いくつかのクラスを無視オプションに追加したいと思います。
.no- で始まるすべてのクラス
.is- を含むクラス
これは正しくありません
angularjs - Grunt uncss task for nested classes
I'm using grunt-uncss
with my AngularJs
app and I'd like to know if it's possible to specify a nested class in the options to be ignored.
For example, my css output when using Angular animations would be something like this:
And in the options I would have to specify it like this:
It's ok if i have just a few.. But in a large application I would have to specify it explicit for all the use cases.
Is there a way to declare only the .ng-enter
and process it for all the use cases, even when nesting with other classes?
travis-ci - Travis の「UnCSS: 設定がありません」
テスト プロジェクトで Travis と一緒にuncss-branch をセットアップしています。ローカルでは問題なく動作しますが、変更をプッシュすると Travis でのビルドが失敗します。エラー行は次のとおりです。brunch build
何が間違っているのか、またはこれをどのようにデバッグできますか? エラー メッセージはuncss-brunchプロジェクト自体からのものであることがわかりました。
npm - npm install grunt-uncss および npm install grunt uncss
うなり声にはかなり新しく、uncssを使用しようとしています。npm を使用してインストールするには、npm install uncss --save-dev と npm install grunt-uncss --save-dev の 2 つの方法があることに注意してください。
phantom.js を使用しているもの以外に、違いはありますか?? ここでかなり混乱。
gruntjs - grunt uncss タスクで未使用の CSS ルールを新しいファイルに移動する方法
Grunt uncss は未使用の css ルールを削除します。私の質問は、未使用のCSSルールを削除する代わりに、それらを別のファイルに入れる方法があるということです
gruntjs - UNCSS が「src files were empty」メッセージで中断し続ける
UNCSSでこのエラーが発生し続けます:'Warning: Destination (dist/css/main.css) not written because src files were empty. Use --force to contine. Aborted due to warnings.
タスクは正常に実行されており、適切にセットアップされていると思います。うなり声を他のことに使うことができます。
gruntfile.js には、以下を含めましたgrunt.loadNpmTasks('grunt-uncss');
。
何が悪いのか分かりませんが、パスだと思いますが、それはまさにその通りです。私もSCSSを使用しているので、生のcssが必要なのかもしれませんSRC
。PhantomJS と生の UNCSS を Grunt なしで再インストールしようとしましたが、どこにも行きません! 何か案は?
javascript - 行を無視する Gulp-Uncss
すべてのjsおよびcssファイルでgulp-uncssを使用しようとしています。css ファイルでのみ正常に動作します。問題は、私の application.js が次の構造になっていることです。
uncss はこの行を js 構文として認識せず、エラーをスローしているようです。この問題またはこの行のみを回避するにはどうすればよいですか? ありがとう!
これは、コンソールに表示されるエラーです。