码迷,mamicode.com
首页 >  
搜索关键字:webpack入门教程二十    ( 6个结果
Webpack入门教程二十
102.webpack.config.js文件中entry的三种使用方式一对象形式,修改webpack.config.js文件,内容如下module.exports={ entry:{ main:‘./src/script/main.js‘, a:‘./src/script/a.js‘ }, output:{ path:‘./dist/js‘, filename:‘[name].js‘ } }103.使用cnpmrunwebpack命..
分类:Web程序   时间:2017-02-20 23:33:33    阅读次数:202
Webpack入门教程二十三
113.使用for循环输出HtmlWebpackPlugin中的内容,修改模板文件index.html<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <metahttp-equiv="X-UA-Compatible"content="IE=edge"> <title>webpackdemo</title> <linkrel="s..
分类:Web程序   时间:2017-02-20 23:31:47    阅读次数:184
Webpack入门教程二十四
116.输出HtmlWebpackPlugin.files中的内容,修改模板文件index.html,代码如下<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <metahttp-equiv="X-UA-Compatible"content="IE=edge"> <title>webpackdemo</title> <linkre..
分类:Web程序   时间:2017-02-20 23:28:24    阅读次数:172
Webpack入门教程二十五
119.输出HtmlWebpackPlugin.options中的内容,修改模板文件index.html,代码如下<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <metahttp-equiv="X-UA-Compatible"content="IE=edge"> <title>webpackdemo</title> <link..
分类:Web程序   时间:2017-02-20 23:26:57    阅读次数:209
Webpack入门教程二十七
126.使用同一模板文件生成不同文件且标题不同,修改webpack.config.js文件,代码如下varhtmlWebpackPlugin=require("html-webpack-plugin"); module.exports={ entry:{ main:‘./src/script/main.js‘, a:‘./src/script/a.js‘ }, output:{ path:‘./dist‘, filename:‘js..
分类:Web程序   时间:2017-02-20 23:19:50    阅读次数:175
Webpack入门教程二十九
133.在模板中以内联的形式引用script脚本,修改webpack.config.js文件,代码如下varhtmlWebpackPlugin=require("html-webpack-plugin"); module.exports={ entry:{ main:‘./src/script/main.js‘, a:‘./src/script/a.js‘ }, output:{ path:‘./dist‘, filename:‘js/[na..
分类:Web程序   时间:2017-02-20 23:18:16    阅读次数:192
6条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!