目前我正在用scss构建我的项目,我正在尝试在开发时加入linting。我在用: - Postcss(和postcss记者) - 提取文本webpack插件 - Stylelint
但是,来自stylelint的警告消息是重复的。这是我的配置
Webpack配置
{
test: /\.scss$/,
loaders: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{loader: 'css-loader', options: {sourceMap: true}},
{loader: 'postcss-loader', options: {sourceMap: true}},
{loader: 'sass-loader', options: {sourceMap: true}}
]
})
}
Postcss配置
const plugins = [
require('stylelint'),
require("postcss-cssnext"),
require('css-mqpacker'),
require("postcss-reporter")({ clearReportedMessages: true })
];
如果我在require('stylelint')
postcss-reporter
之前放置 require_once "Mail.php";
$from = '<MY_EMAIL@gmail.com>';
$to = '<foo@gmail.com>';
$subject = 'Hi!';
$body = "Hi,\n\nHow are you2?";
$headers = array(
'From' => $from,
'To' => $to,
'Subject' => $subject
);
$smtp = Mail::factory('smtp', array(
'host' => 'ssl://smtp.gmail.com', //tried also without ssl:// or tls://
'port' => '465', //tried also 578
'auth' => true,
'username' => 'MY_EMAIL@gmail.com',
'password' => 'MY_GMAIL_PASS' //or code provided by google 2-step-verification
));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo('<p>' . $mail->getMessage() . '</p>');
} else {
echo('<p>Message successfully sent!</p>');
}
,我会收到多条样式信息。