Skip to content
Snippets Groups Projects
Commit c3ec09d4 authored by Christopher Guindon's avatar Christopher Guindon
Browse files

Merge branch 'zhoufang/main/updateWebpack' into 'main'

Updated webpack

See merge request eclipsefdn/it/websites/eclipse.org!14
parents 73dcba22 3a2d3c83
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
```
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -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
source diff could not be displayed: it is too large. Options to address this: view the blob.
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