dev_local_2
杨树林 5 years ago
parent 75c1d3c0e4
commit e04a81881c

@ -269,27 +269,27 @@ module.exports = {
// You can remove this if you don't use Moment.js: // You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new MonacoWebpackPlugin(), new MonacoWebpackPlugin(),
new HardSourceWebpackPlugin({ // new HardSourceWebpackPlugin({
// cacheDirectory是在高速缓存写入。默认情况下将缓存存储在node_modules下的目录中因此如 // // cacheDirectory是在高速缓存写入。默认情况下将缓存存储在node_modules下的目录中因此如
// 果清除了node_modules则缓存也是如此 // // 果清除了node_modules则缓存也是如此
cacheDirectory: 'node_modules/.cache/hard-source/[confighash]', // cacheDirectory: 'node_modules/.cache/hard-source/[confighash]',
// Either an absolute path or relative to webpack's options.context. // // Either an absolute path or relative to webpack's options.context.
// Sets webpack's recordsPath if not already set. // // Sets webpack's recordsPath if not already set.
recordsPath: 'node_modules/.cache/hard-source/[confighash]/records.json', // recordsPath: 'node_modules/.cache/hard-source/[confighash]/records.json',
// configHash在启动webpack实例时转换webpack配置并用于cacheDirectory为不同的webpack配 // // configHash在启动webpack实例时转换webpack配置并用于cacheDirectory为不同的webpack配
// 置构建不同的缓存 // // 置构建不同的缓存
configHash: function(webpackConfig) { // configHash: function(webpackConfig) {
// node-object-hash on npm can be used to build this. // // node-object-hash on npm can be used to build this.
return require('node-object-hash')({sort: false}).hash(webpackConfig); // return require('node-object-hash')({sort: false}).hash(webpackConfig);
}, // },
// 当加载器插件其他构建时脚本或其他动态依赖项发生更改时hard-source需要替换缓存以确保输 // // 当加载器插件其他构建时脚本或其他动态依赖项发生更改时hard-source需要替换缓存以确保输
// 出正确。environmentHash被用来确定这一点。如果散列与先前的构建不同则将使用新的缓存 // // 出正确。environmentHash被用来确定这一点。如果散列与先前的构建不同则将使用新的缓存
environmentHash: { // environmentHash: {
root: process.cwd(), // root: process.cwd(),
directories: [], // directories: [],
files: ['package-lock.json', 'yarn.lock'], // files: ['package-lock.json', 'yarn.lock'],
}, // },
}), // }),
], ],
// Some libraries import Node modules but don't use them in the browser. // Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works. // Tell Webpack to provide empty mocks for them so importing them works.

@ -120,9 +120,17 @@ class ShixunPathSearch extends Component{
{...this.state} {...this.state}
/>} />}
<div className="pr"> <div className="pr">
<style>
{
`
.educontentsysltwos{width: 1200px;margin:0px auto;box-sizing: border-box}
`
}
</style>
<div className="pathImg"></div> <div className="pathImg"></div>
<div className="edu-back-white padding20 pathIndexNav"> <div className="edu-back-white padding20 pathIndexNav">
<ul className="educontentsysltwo clearfix">
<ul className="educontentsysltwos clearfix">
<li className={select > 0 ? "" : "active"}><a onClick={()=>this.changeSelect(null)}>全部</a></li> <li className={select > 0 ? "" : "active"}><a onClick={()=>this.changeSelect(null)}>全部</a></li>
{ {
sortList && sortList.map((item,key)=>{ sortList && sortList.map((item,key)=>{

@ -700,7 +700,7 @@ submittojoinclass=(value)=>{
{...this.state} {...this.state}
/>:""} />:""}
<Link to="/" className={"fl mr30 ml25 mt10"}> <Link to="/" className={"fl mr30 ml25 mt10"}>
<img alt="高校智能化教学与实训平台" className="logoimg" src={getImageUrl("images/educoder/headNavLogo.png?1526520218")}></img> <img alt="高校智能化教学与实训平台" className="logoimg" src={getImageUrl("images/educoder/headNavLogo.png?1526520218")} ></img>
</Link> </Link>
<style> <style>

@ -215,6 +215,7 @@ body>.-task-title {
} }
.logoimg{ .logoimg{
float: left; float:left;
width: 40px; width:40px;
height:40px;
} }
Loading…
Cancel
Save