Skip to content
Snippets Groups Projects
Commit 3a2d3c83 authored by Zhou Fang's avatar Zhou Fang
Browse files

Updated webpack

parent 73dcba22
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ The Eclipse Foundation provides our global community of individuals and organiza
Install dependencies, build assets and start a web server:
```bash
npm install
yarn
hugo server
```
......
This diff is collapsed.
......@@ -25,8 +25,9 @@
"build_netlify": "NODE_ENV=production npm run disallow_robots_txt && npm run production"
},
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "0.0.129",
"eclipsefdn-hugo-solstice-theme": "0.0.132",
"js-yaml": "^3.13.1",
"json-minify": "^1.0.0"
}
},
"browserslist": "last 5 version, > 0.2%, not dead, IE 11"
}
......@@ -11,24 +11,13 @@
* SPDX-License-Identifier: EPL-2.0
*/
mix = require('laravel-mix');
require('laravel-mix-transpile-node-modules');
mix.transpileNodeModules(['eclipsefdn-solstice-assets']);
mix.options({
uglify: { uglifyOptions: { compress: false, output: { comments: true } } },
});
require('./node_modules/eclipsefdn-solstice-assets/webpack-solstice-assets.mix.js');
let mix = require('laravel-mix');
mix.EclipseFdnSolsticeAssets();
mix.setPublicPath('static');
mix.setResourceRoot('../');
mix.less('./less/styles.less', 'static/css/styles.css');
mix.webpackConfig({
resolve: {
alias: {
jquery: 'jquery/src/jquery',
},
},
});
mix.js('js/main.js', './static/js/solstice.js');
yarn.lock 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment