我在Docker容器中运行webpack,如果这有什么区别的话。 我的webpack.config.js: module.exports = { entry: './app/Resources/scripts/test.js', output: { filename: './web/js/bundle.js' }, watch: true, module: { rules: [{ test: /\.scss$/, use: [{ loader: "style-loader" // creates style nodes from JS strings }, { loader: "css-loader" // translates CSS into CommonJS }, { loader: "sass-loader" // compiles Sass to CSS }] }] } } 我的test.js: require('../styles/test.scss'); […]