如何修改 webpack 打包css的引用路径

2024-11-30 17:03:25
推荐回答(2个)
回答1:

我只知道在myeclipse中怎么修改,相信会类似。右击你的web工程,选择properties,再选择其中的myeclipse或者eclipse,会看见左边树型结构中有个 web选项,点击,在右边就有修改访问路径了

回答2:

var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: {
app:path.resolve(__dirname, 'src/index.js'),
vendor: ['react', 'react-dom', 'react-router']
},
output: {