我的应用程序.scss
.tes {
color: red;
}
我执行时的输出错误./node_modules/.bin/webpack
ERROR in ./~/css-loader!./~/sass-loader?indentedSyntax!./www/assets/app.scss
Module build failed:
.tes {
^
Invalid CSS after ".tes {": expected "}", was "{"
in ./www/assets/app.scss (line 1, column 7)
@ ./www/assets/app.scss 4:14-135 13:2-17:4 13:2-17:4 14:20-141
我的webpack.config
module: {
loaders: [
{
test: /\.scss$/,
loader: 'style!css!sass?indentedSyntax'
},
{
test: /\.css$/,
loader: 'style!css'
}, {
test: /\.(woff|woff2|ttf|eot|svg)(\?]?.*)?$/,
loader: 'file-loader?name=res/[name].[ext]?[hash]'
}
]
},
和我的app.js
require('./www/assets/app.scss');
var angular = require('angular');
var uiRouter = require('angular-ui-router');
require('velocity-animate');
require('node-lumx');
var HomeController = require('./www/components/home/homeController');
angular.module('app', ['lumx', uiRouter])
... //OMITED