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
const config = { entry: "./src/main.js" }
const config = { app: "./src/main.js", vendors: "./src/vendors.js" }
const config = { entry: "./src/main.js", output: { filename: "bundle.js", path: path.resolve(__dirname, 'dist')//__dirname代表当前路径下 } }
module: { rules: [ { test: /\.js$/, //正则表达式,匹配相关需要转换的文件 exclude: /node_modules/, loader: "babel-loader",//所用到的loader,有顺序之分,从下到上解读 options: [ presets: ["env"] ] } ] }
plugins: [ new HtmlWebpackPlugin({template: './src/index.html'}) ]
END
by wind-jyf
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ES6环境搭建
1.在Node.js环境运行ES6
2.webpack
2.1核心概念
2.2入口(entry)
2.3输出(output)
2.4loader
2.5插件
END
by wind-jyf
The text was updated successfully, but these errors were encountered: