webpack的路径问题到底是怎么回事
1 回答
茅侃侃
TA贡献1842条经验 获得超21个赞
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | var path = require('path'), webpack = require('webpack'), ExtractTextPlugin = require('extract-text-webpack-plugin'), HtmlWebpackPlugin = require('html-webpack-plugin');module.exports = { context: path.resolve(__dirname, 'app/scripts'), entry: { index: './index.js' }, output: { path: path.resolve(__dirname, 'dist'), filename: 'scripts/[name].[hash].js', chunkFilename: 'scripts/[id].chunk.js' }, module: { loaders: [ { |
- 1 回答
- 0 关注
- 623 浏览
添加回答
举报
0/150
提交
取消