webpack的路徑問題到底是怎么回事
1 回答

茅侃侃
TA貢獻1842條經(jīng)驗 獲得超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 關(guān)注
- 643 瀏覽
添加回答
舉報
0/150
提交
取消