我正在使用 slate 创建 Shopify 主题,我想在我的主题中添加 bootstrap 4 SCSS
我已经尝试通过在文件夹中添加 bootstrap 的 SCSS 文件styles/vendor/bootstrap
夹并将其导入theme.scss
/*================ BOOTSTRAP ================*/
@import url('vendor/bootstrap/scss/bootstrap.scss');
问题是在slate build
成功完成此操作后,但在控制台中出现错误
Refused to apply style from 'https://cdn.shopify.com/s/files/1/2331/3377/t/10/assets/theme.scss.css?9739733336988663236' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
当我打开 CSS 它显示
Failed to compile SCSS file
任何人都可以解决这个问题吗?或在 slate 主题中导入 bootstrap 4 的任何其他方法