Webpack တွင် Inline Assets များ
ယခု Inline Assets များကို စမ်းကြည့်ကြရအောင်။ ထိုကဲ့သို့ ပြင်ဆင်မှုတစ်ခုတွင် ရုပ်ပုံများကို base64 အဖြစ်သို့ ပြောင်းလဲပေးပါလိမ့်မည်။ စမ်းကြည့်ကြရအောင်။
export default {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve('dist'),
},
module: {
rules: [
{
test: /\.png$/,
type: 'asset/inline'
}
]
},
plugins: [
new HtmlWebpackPlugin(),
],
};
.svg ရုပ်ပုံများ
Inline Assets များဖြစ်လာစေရန် ပြုလုပ်ပါ။
သင်၏ ပြင်ဆင်မှုများကို ရုပ်ပုံတစ်ပုံဖြင့်
စမ်းသပ်ကြည့်ပါ။