We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR in ../node_modules/_react-photoswipe@1.3.0@react-photoswipe/lib/photoswipe.css Module build failed: ReferenceError: window is not defined
请问该如何正确引入less
The text was updated successfully, but these errors were encountered:
我的整个项目都是使用css in js,没有考虑less。你可能需要自己配置webpack。
你可以参考下面代码 npm install --save-dev less-loader less
npm install --save-dev less-loader less
{ test:/\.(css|less)$/, use: ExtractTextPlugin.extract({ fallback:'style-loader',//style-loader 将css插入到页面的style标签 use:[{ loader: 'css-loader',//css-loader 是处理css文件中的url(),require()等 },,{ loader:'less-loader', }] }), }
Sorry, something went wrong.
No branches or pull requests
ERROR in ../node_modules/_react-photoswipe@1.3.0@react-photoswipe/lib/photoswipe.css
Module build failed: ReferenceError: window is not defined
请问该如何正确引入less
The text was updated successfully, but these errors were encountered: