Commit da14f87c authored by Christopher Guindon's avatar Christopher Guindon
Browse files

remove archive webpack


Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>
parent 8ba5d1df
This diff is collapsed.
......@@ -17,18 +17,13 @@
"watch": "NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"production": "NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"dev_archives": "NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js -- --env.site=archives",
"watch_archives": "NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js -- --env.site=archives",
"hot_archives": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js -- --env.site=archives",
"production_archives": "npm run production -- --env.site=archives",
"install": "NODE_ENV=production npm run production && npm run production_archives",
"install": "NODE_ENV=production npm run production",
"disallow_robots_txt": "echo \"User-agent: *\r\nDisallow: /\" > layouts/robots.txt",
"build_netlify": "NODE_ENV=production npm run disallow_robots_txt && npm run production && npm run production_archives",
"build_netlify": "NODE_ENV=production npm run disallow_robots_txt && npm run production",
"test": "jest"
},
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "0.0.102",
"minimist": "^1.2.5",
"eclipsefdn-hugo-solstice-theme": "0.0.106",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
......
/*!
* Copyright (c) 2018 Eclipse Foundation, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
*/
mix.setPublicPath('static/archives');
mix.setResourceRoot('../');
/*
mix.less('./less/france2017/styles.less', './content/france2017/styles.css');
mix.less('./less/france2018/styles.less', './content/france2018/styles.css');
mix.less('./less/europe2017/styles.less', './content/europe2017/styles.css');
mix.less('./less/locationcon2017/styles.less', './content/locationcon2017/styles.css');
mix.less('./less/na2017/styles.less', './content/na2017/styles.css');
mix.less('./less/summiteurope2007/styles.less', './content/summiteurope2007/styles.css');
mix.less('./less/summiteurope2008/styles.less', './content/summiteurope2008/styles.css');
mix.less('./less/summiteurope2009/styles.less', './content/summiteurope2009/styles.css');
mix.less('./less/summiteurope2010/styles.less', './content/summiteurope2010/styles.css');
*/
\ No newline at end of file
/*!
* Copyright (c) 2018 Eclipse Foundation, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
*/
mix.setPublicPath('static');
mix.setResourceRoot('../');
mix.less('./less/styles.less', 'static/css/styles.css');
mix.scripts([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js',
'./node_modules/jquery-match-height/dist/jquery.matchHeight-min.js',
'./node_modules/jquery-eclipsefdn-api/dist/jquery.eclipsefdn-api.min.js',
'./node_modules/feather-icons/dist/feather.min.js',
'./node_modules/cookieconsent/src/cookieconsent.js',
'./node_modules/owl.carousel/dist/owl.carousel.min.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookieconsent.js',
'./node_modules/eclipsefdn-solstice-assets/js/eclipsefdn.videos.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookies.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.eventsmodal.js'
], './static/js/solstice.js');
mix.react('js/App.js', 'js');
\ No newline at end of file
......@@ -12,13 +12,23 @@
*/
mix = require('laravel-mix');
mix.options({uglify: {uglifyOptions: {compress: false, output: {comments: true}}}});
const { env } = require('minimist')(process.argv.slice(2));
mix.setPublicPath('static');
mix.setResourceRoot('../');
mix.less('./less/styles.less', 'static/css/styles.css');
// load site-specific config
if (env && env.site) {
require(`${__dirname}/webpack.mix.${env.site}.js`);
}
else {
require(`${__dirname}/webpack.mix.default.js`);
}
\ No newline at end of file
mix.scripts([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js',
'./node_modules/jquery-match-height/dist/jquery.matchHeight-min.js',
'./node_modules/jquery-eclipsefdn-api/dist/jquery.eclipsefdn-api.min.js',
'./node_modules/feather-icons/dist/feather.min.js',
'./node_modules/cookieconsent/src/cookieconsent.js',
'./node_modules/owl.carousel/dist/owl.carousel.min.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookieconsent.js',
'./node_modules/eclipsefdn-solstice-assets/js/eclipsefdn.videos.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookies.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.eventsmodal.js'
], './static/js/solstice.js');
mix.react('js/App.js', 'js');
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment