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
{ "entry": { "index" : "/path/to/index"} } / ['./src/entry/*.js']
{filename:'[name].[ext]',path:'./dist',publicPath:'http://xx.xxx.com/asset/', chunkFileName: '[name].[ext]'}
filename
path
publicPath
chunkFilename
{library: 'commonjs'}
{moduleA: 'path/to/modulea'}
[/moment.js/]
{modules: ['./src'], extensions:['.worker.js','.js', '.json']}
modules
extensions
{modules: ['node-modules'], extensions:['-loader']}
{jquery: 'jQuery'}
common: { minChunks: 2}
minChunks
['moment.js','jquery']
{devtool: '#source-map'}
{'@buttonTxtColor': '#333333'}
{ import: true, modules: true}
{ sourceMap: true}
{rem: {rootValue: 100}
{image:{limit: 1000}
{font:{limit: 1000}
{type:'url-loader'}
{PRODUCTION: JSON.stringify(true)}
{$: 'jquery'}
['iOS >= 8', 'Android >= 4']
{html: { x: 'y',template: 'path/to/x.html' }}
[{package: 'vue-loader',options:{},deps{}}]
[{package: 'visualPlugin',options:{},deps{}}]
{copy: ['./xx/*.*']}
{clean: ['./www']}
{shell:{onBuildStart:'xxx', onBuildEnd:'xxxx'}}
{boost: true}
{lessMap: { theme: './config/a.less'}}
The text was updated successfully, but these errors were encountered:
soda-x
No branches or pull requests
示例:
{ "entry": { "index" : "/path/to/index"} } / ['./src/entry/*.js']
示例:
{filename:'[name].[ext]',path:'./dist',publicPath:'http://xx.xxx.com/asset/', chunkFileName: '[name].[ext]'}
filename
: 改构建后文件的命名path
: 构建后文件输出到磁盘的目录publicPath
: 申明构建后的资源文件的引入地址chunkFilename
: 声明非 entry chunks 的资源文件的命名示例:{ enable: true }
示例
{library: 'commonjs'}
示例:
{moduleA: 'path/to/modulea'}
示例:
[/moment.js/]
示例:
{modules: ['./src'], extensions:['.worker.js','.js', '.json']}
modules
: 在检索模块时告知 webpack 那些目录需要检索extensions
:在检索模块时告知 webpack 那些扩展名需要检索示例:
{modules: ['node-modules'], extensions:['-loader']}
modules
: 在检索loader 时告知 webpack 那些目录需要检索extensions
:在检索 loader 时告知 webpack 那些扩展名需要检索示例:
{jquery: 'jQuery'}
示例:
common: { minChunks: 2}
minChunks
: 最小抽取单元示例:
['moment.js','jquery']
示例:
{devtool: '#source-map'}
示例:
{'@buttonTxtColor': '#333333'}
示例:
{ import: true, modules: true}
示例:
{ sourceMap: true}
示例:
{rem: {rootValue: 100}
示例:
{image:{limit: 1000}
示例:
{font:{limit: 1000}
示例:
{type:'url-loader'}
示例:
{PRODUCTION: JSON.stringify(true)}
示例:
{$: 'jquery'}
示例:``{uglify: true}````
示例:
['iOS >= 8', 'Android >= 4']
示例:
{html: { x: 'y',template: 'path/to/x.html' }}
示例:
[{package: 'vue-loader',options:{},deps{}}]
示例:
[{package: 'visualPlugin',options:{},deps{}}]
示例:
{copy: ['./xx/*.*']}
示例:
{clean: ['./www']}
示例:
{shell:{onBuildStart:'xxx', onBuildEnd:'xxxx'}}
示例:
{boost: true}
示例:
{lessMap: { theme: './config/a.less'}}
The text was updated successfully, but these errors were encountered: