問題タブ [extract-text-plugin]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
377 参照

javascript - webpack3 + css loader - setting absolute path aliases for relative font and image imports in css files

I want to alias the the relative font and image imports in my css and scss modules with absolute paths. The goal is store all of my font and image files in two central folders, without going through every css file and changing the relative imports, which would be difficult especially with minified third party stylesheets like bootstrap. I'm not making much progress and setting the aliases is causing many of my relative imports to not resolve when running webpack.

Is it possible to achieve this folder structure using the alias option?

css-loader in the webpack config object

The project is a large muti-page jQuery app with one webpack entry point per page

0 投票する
2 に答える
2537 参照

webpack - css-loader sass-loader の解析エラー

私は webpack 1 から 3 に移行しています。非常に多くのエラーを経験した後、今はこれで立ち往生しています。誰か助けてください!

これらのエラーが発生しています -

これがサンプルリポジトリです - https://github.com/shivamkumar110/webpack-3-test

ここに私のwebpack.config.jsからのスニペットがあります