如何在Vue2中使用JSX导入更少的模块?

时间:2017-08-23 08:30:57

标签: webpack less vuejs2

我正在使用Vue2和JSX模板,我想在组件中加载较少的模块,但是有一些错误,例如

This relative module was not found: * ./ListItem.less in ./src/pages/treatment/ListItem.js

错误:

{ test: /\.less$/, loader: 'style!css-loader?modules&importLoaders=2&localIdentName=[name]__[local]___[hash:base64:5]', include: [resolve('src'), resolve('test')] },

我的webpack加载器

DELETE FROM customer1 WHERE agent_code=ANY(SELECT agent_code FROM agents WHERE working_area='London');

'ListItem.less'文件和同一文件夹中的组件! 如何配置可以让它工作?

0 个答案:

没有答案