Authored by 王水玲

新潮教室

body, ul, li {
margin: 0;
padding: 0;
}
/*# sourceMappingURL=index.css.map */
... ...
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.css","sourceRoot":"/source/","sourcesContent":[]}
\ No newline at end of file
{"version":3,"sources":["index.css"],"names":[],"mappings":"AAAA;IACI,UAAU;IACV,WAAW;CACd","file":"index.css","sourcesContent":["body,ul,li {\r\n margin: 0;\r\n padding: 0;\r\n}"],"sourceRoot":"/source/"}
\ No newline at end of file
... ...
... ... @@ -183,7 +183,7 @@ gulp.task('webpack-server', (cb) => {
entry: './index.js',
output: {
path: path.resolve(__dirname, '/build'),
filename: '[name].js'
filename: 'bundle.js'
},
plugins: []//TODO: 没理清commonChunkPlugin加载后文件访问问题??
});
... ...
require('./js/header');
\ No newline at end of file
... ...
console.log(1);
\ No newline at end of file
... ...
body,ul,li {
margin: 0;
padding: 0;
}
\ No newline at end of file
... ...
... ... @@ -22,8 +22,8 @@ exports.index = (req, res) => {
res.render('starClassroom/index', {
title: '星潮教室',
module: 'starClassroom',
version: '0.0.1'
version: '0.0.1',
headTab: ['全部', '星专题', '星搭配', '星鲜事']
// wxLottery: data
});
};
... ...
... ... @@ -23,7 +23,7 @@
<body>
{{{body}}}
{{#if devEnv}}
<script type="text/javascript" src="//localhost:8002/index.js"></script>
<script type="text/javascript" src="//localhost:8002/bundle.js"></script>
{{^}}
<script type="text/javascript" src="{{assetsUrl}}/{{module}}/{{version}}/lib.js"></script>
<script type="text/javascript" src="{{assetsUrl}}/{{module}}/{{version}}/index.js"></script>
... ...
{{> layout/head_tab}}
\ No newline at end of file
... ...
<ul>
{{#each headTab}}
<li>{{ this }}</li>
{{/each}}
</ul>
\ No newline at end of file
... ...