amis icon indicating copy to clipboard operation
amis copied to clipboard

通过import导入样式, 为啥在编译是报Unexcepted character '@'

Open wuxin2014 opened this issue 7 years ago • 3 comments

import * as React from 'react' import { render } from 'react-dom' import Hello from './page/Hello'

import 'amis/lib/themes/default.css' import './css/index.css'

render(, document.getElementById('root'))

image

wuxin2014 avatar Jun 14 '19 04:06 wuxin2014

you may need an appropriate loader to handle this file type.

2betop avatar Jun 14 '19 06:06 2betop

跟 amis 无关,先关了。你需要一个 css loader

2betop avatar Jun 14 '19 06:06 2betop

明明有配置css-loader

{ test: /.css$/, use: ['style-loader', 'css-loader'], },

wuxin2014 avatar Jun 17 '19 02:06 wuxin2014