SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3f6b6acd authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Failed attempts

parent 2e9509de
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"doc": "docs" "doc": "docs"
}, },
"scripts": { "scripts": {
"webpack-test": "./node_modules/.bin/webpack --config webpack.test.config.js",
"webpack-dev": "./node_modules/.bin/webpack --config webpack.dev.config.js", "webpack-dev": "./node_modules/.bin/webpack --config webpack.dev.config.js",
"webpack-dev-live": "./node_modules/.bin/webpack --config webpack.dev.config.js --watch", "webpack-dev-live": "./node_modules/.bin/webpack --config webpack.dev.config.js --watch",
"webpack-prod": "./node_modules/.bin/webpack --config webpack.prod.config.js" "webpack-prod": "./node_modules/.bin/webpack --config webpack.prod.config.js"
......
...@@ -64,7 +64,7 @@ module.exports = { ...@@ -64,7 +64,7 @@ module.exports = {
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader'], use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader'],
}, },
// { // {
// test: /\.less$/, // test: /\.less$/,
...@@ -72,7 +72,7 @@ module.exports = { ...@@ -72,7 +72,7 @@ module.exports = {
// }, // },
{ {
test: /\.scss$/, test: /\.scss$/,
use: [MiniCssExtractPlugin.loader, 'sass-loader'], use: [MiniCssExtractPlugin.loader, 'sass-loader'],
} }
] ]
}, },
......
var webpack = require("webpack");
var path_bundles = __dirname + '/static_bundles/bundles';
module.exports = {
mode: 'development',
context: __dirname,
entry: {
main: [
"bootstrap-loader",
"./scipost/static/scipost/assets/js/dynamic_loading.js",
"./scipost/static/scipost/assets/js/scripts.js",
],
homepage: [
"./scipost/static/scipost/assets/js/fader.js",
"./scipost/static/scipost/assets/js/newsticker.js",
],
},
output: {
path: path_bundles,
publicPath: '/static/bundles/',
filename: "js/[name]-[hash].js",
},
module: {
rules: [
{
test: require.resolve('jquery'),
use: [{
loader: 'expose-loader',
options: 'jQuery'
},{
loader: 'expose-loader',
options: '$'
}]
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader', 'postcss-loader'],
},
{
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
Tether: 'tether',
'window.Tether': 'tether',
Tooltip: "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
Util: 'exports-loader?Util!bootstrap/js/dist/util',
Popper: ['popper.js', 'default'],
Alert: "exports-loader?Alert!bootstrap/js/dist/alert",
Button: "exports-loader?Button!bootstrap/js/dist/button",
Carousel: "exports-loader?Carousel!bootstrap/js/dist/carousel",
Collapse: "exports-loader?Collapse!bootstrap/js/dist/collapse",
Dropdown: "exports-loader?Dropdown!bootstrap/js/dist/dropdown",
Modal: "exports-loader?Modal!bootstrap/js/dist/modal",
Popover: "exports-loader?Popover!bootstrap/js/dist/popover",
Scrollspy: "exports-loader?Scrollspy!bootstrap/js/dist/scrollspy",
Tab: "exports-loader?Tab!bootstrap/js/dist/tab",
Tooltip: "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
Util: "exports-loader?Util!bootstrap/js/dist/util",
}),
],
}
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