2022年8月14日
webpack学习笔记-开发配置(4)

/*
开发环境配置:能让代码运行
运行项目指令:
webpack 会将打包结果输出出去
npx webpack-dev-server 只会在内存中编译打包,没有输出
*/
const { resolve } = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/js/index.js',
output: {
filename: 'js/built.js',
path: resolve(__dirname, 'build')
},
module: {
rules: [
// loader的配置
{
// 处理less资源
test: /\.less$/,
use: ['style-loader', 'css-loader', 'less-loader']
},
{
// 处理css资源
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
// 处理图片资源
test: /\.(jpg|png|gif)$/,
loader: 'url-loader',
options: {
limit: 8 * 1024,
name: '[hash:10].[ext]',
// 关闭es6模块化
esModule: false,
outputPath: 'imgs'
}
},
{
// 处理html中img资源
test: /\.html$/,
loader: 'html-loader'
},
{
// 处理其他资源
exclude: /\.(html|js|css|less|jpg|png|gif)/,
loader: 'file-loader',
options: {
name: '[hash:10].[ext]',
outputPath: 'media'
}
}
]
},
plugins: [
// plugins的配置
new HtmlWebpackPlugin({
template: './src/index.html'
})
],
mode: 'development',
devServer: {
contentBase: resolve(__dirname, 'build'),
compress: true,
port: 3000,
open: true
}
};
The morning buzz pussyX hamster hairy boy hot teacherTiny asians sucking black cocksHe cupped my breastGay bars bangaloreBest porn video reviewFree butt fucking pictureTenn hore fucks her
mom bfBoob tattoo photoWomen porn red hair free xnxx Anime c hentaiFredericks bbwBreast cancer
diagnostic testVirgin coconut oil chemical compositionAmateur garden nudeSex with love dolls videoInternal affairs sex
sceneChristy miller nake https://xxxxlulu.com/ Naked
women in their 40 sHigh resolution video pornSex with dogs bitchesDick pacific corpHairy red hair fuckingFreckled nakedEscort ford mk2
picture sportFree online bondage hentai videosThumb extensorsBrooke burke
nude with guy xnxx Russian brides xxxWoodman anal poundingHot gay porn picturesAstuces sex voissaFoggy bottom whitetailThe hottest fuckingNancy wilson nude heartTwo
cocks in booty video movie2 asian cream pie thighErotic
art cartoonsCountry music artists gayFrench lick visitirGay dancing
bear