如何在不使用webpack的情况下使babel 将.css导入.js ,因为在我的项目中没有webpack,并且我想通过.babelrc 进行配置;
此刻我还没有此配置文件;
预装的babel-watcher和babel-packages:babel-cli @ 6 babel-preset-react-app @ 3 babel-loader @ latest 与我一起使用.babelrc
import '../js/pagination.js';
import '../css/pagination.css';
export default class Pagination extends React.Component{
此刻我遇到下一个错误
Failed to load module script: The server
responded with a non-JavaScript MIME type of
"text/css". Strict MIME type checking is
enforced for module scripts per HTML spec.