We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
高度なオプションマージ機能を導入して、自前のwebpack.config.jsでローダーのオプションのみを修正できるようにする。
具体的に想定している用途は、CSSの背景画像をバンドルせずpublicから呼び出したい場合。css-loaderに options: { url: false } を設定するだけだが、現状のオプションマージ機能だとルールが重複した場合にユーザー側を無視してしまう。
options: { url: false }
マージ方法を別の関数に変えるため #15 に影響が出る可能性あり。一応、MiniCssExtractPluginで動作確認済み。
修正後、CSSの背景画像をバンドルせずpublicから呼び出したい場合は自前のwebpack.config.jsに以下を記述することで目的を果たせるようになる。urlをfalseにするかどうかはユーザー次第なので、minista本体では設定しない。
const webpackConfig = { module: { rules: [ { test: /\.css$/, use: [ { loader: "css-loader", options: { url: false, }, }, ], }, ], }, } module.exports = webpackConfig
The text was updated successfully, but these errors were encountered:
Support for merging loader options #33
98fd985
v1.2.0にて反映。
Sorry, something went wrong.
No branches or pull requests
高度なオプションマージ機能を導入して、自前のwebpack.config.jsでローダーのオプションのみを修正できるようにする。
具体的に想定している用途は、CSSの背景画像をバンドルせずpublicから呼び出したい場合。css-loaderに
options: { url: false }
を設定するだけだが、現状のオプションマージ機能だとルールが重複した場合にユーザー側を無視してしまう。マージ方法を別の関数に変えるため #15 に影響が出る可能性あり。一応、MiniCssExtractPluginで動作確認済み。
修正後、CSSの背景画像をバンドルせずpublicから呼び出したい場合は自前のwebpack.config.jsに以下を記述することで目的を果たせるようになる。urlをfalseにするかどうかはユーザー次第なので、minista本体では設定しない。
The text was updated successfully, but these errors were encountered: