Authored by ccbikai

完善构建

... ... @@ -42,7 +42,9 @@
},
"devDependencies": {
"autoprefixer": "^6.3.7",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"eslint": "^3.0.1",
"eslint-config-yoho": "^1.0.1",
"eslint-plugin-html": "^1.5.1",
... ... @@ -69,7 +71,7 @@
"shelljs": "^0.7.0",
"style-loader": "^0.13.1",
"stylelint": "^6.9.0",
"stylelint-config-yoho": "^1.2.5",
"stylelint-config-yoho": "1.2.5",
"vue-loader": "^8.5.3",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1",
... ...
... ... @@ -184,7 +184,7 @@ gulp.task('webpack-dev-server', () => {
postcss: postcssPlugin(env.dev),
autoprefixer: false,
loaders: {
css: 'vue-style-loader!css-loader?sourceMap&-url'
css: 'vue-style!css?-url'
}
}
});
... ... @@ -214,7 +214,7 @@ gulp.task('webpack', (done) => {
postcss: postcssPlugin(env.pro),
autoprefixer: false,
loaders: {
css: 'vue-style-loader!css-loader?-url'
css: 'vue-style!css?-url'
}
}
});
... ...
... ... @@ -22,4 +22,13 @@ console.log(parse('q=w&e=r')); // { q: 'w', e: 'r' }
var cookie = require('yoho-cookie');
console.log(cookie.all());
var test = {
data() {
return {
message: 'test',
message2: 'test2'
};
}
};
/* eslint-enable */
... ...
... ... @@ -11,6 +11,7 @@
var s = 1; // 测试代码检查
console.log(1);
module.exports = {
data() {
return {
... ... @@ -28,7 +29,7 @@
color: green;
background: url("/channel/boys.png");
}
/* 图片测试 */
.test2 {
color: blue;
... ... @@ -38,4 +39,4 @@
.testError {
background: white;
}
</style>
\ No newline at end of file
</style>
... ...