bridgetown-core 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-core/version.rb +1 -1
- data/lib/site_template/webpack.config.js +29 -28
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0906f551762562da1c9663539e264598ff83e4047206e443f333a12cfc3a59a4'
|
4
|
+
data.tar.gz: bd8d4b58c92d6fbb7709e5022e4cd114dcea6c4de9cfb73e6992666585035f01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb2a4a8592cb90a72d68c4f9cef2551c5fd2101699f2e39fe15f5ac0cc9ae6e3465128651a03a1de4cad327699001b8e5774c073612e5a533585f7152bf6518c
|
7
|
+
data.tar.gz: 0d81b4b78a7877ab1ad308ceb9de3a723a05d42b8685392586524d3a1028704c3b6ad30deb6e82c413f915f80b188589cf7a48a590965cf69cafe47bc80ed250
|
@@ -1,6 +1,6 @@
|
|
1
|
-
const path = require("path")
|
2
|
-
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
|
3
|
-
const ManifestPlugin = require("webpack-manifest-plugin")
|
1
|
+
const path = require("path");
|
2
|
+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
3
|
+
const ManifestPlugin = require("webpack-manifest-plugin");
|
4
4
|
|
5
5
|
module.exports = {
|
6
6
|
entry: "./frontend/javascript/index.js",
|
@@ -10,22 +10,22 @@ module.exports = {
|
|
10
10
|
modules: false,
|
11
11
|
builtAt: false,
|
12
12
|
timings: false,
|
13
|
-
children: false
|
13
|
+
children: false,
|
14
14
|
},
|
15
15
|
output: {
|
16
16
|
path: path.resolve(__dirname, "output", "_bridgetown", "static", "js"),
|
17
|
-
filename: "all.[contenthash].js"
|
17
|
+
filename: "all.[contenthash].js",
|
18
18
|
},
|
19
19
|
resolve: {
|
20
|
-
extensions: [".js", ".jsx"]
|
20
|
+
extensions: [".js", ".jsx"],
|
21
21
|
},
|
22
22
|
plugins: [
|
23
23
|
new MiniCssExtractPlugin({
|
24
24
|
filename: "../css/all.[contenthash].css",
|
25
25
|
}),
|
26
26
|
new ManifestPlugin({
|
27
|
-
fileName: path.resolve(__dirname, ".bridgetown-webpack", "manifest.json")
|
28
|
-
})
|
27
|
+
fileName: path.resolve(__dirname, ".bridgetown-webpack", "manifest.json"),
|
28
|
+
}),
|
29
29
|
],
|
30
30
|
module: {
|
31
31
|
rules: [
|
@@ -34,23 +34,21 @@ module.exports = {
|
|
34
34
|
use: {
|
35
35
|
loader: "babel-loader",
|
36
36
|
options: {
|
37
|
-
presets: [
|
38
|
-
"@babel/preset-env"
|
39
|
-
],
|
37
|
+
presets: ["@babel/preset-env"],
|
40
38
|
plugins: [
|
41
39
|
"@babel/plugin-proposal-class-properties",
|
42
40
|
[
|
43
41
|
"@babel/plugin-transform-runtime",
|
44
42
|
{
|
45
|
-
|
46
|
-
}
|
47
|
-
]
|
48
|
-
]
|
49
|
-
}
|
50
|
-
}
|
43
|
+
helpers: false,
|
44
|
+
},
|
45
|
+
],
|
46
|
+
],
|
47
|
+
},
|
48
|
+
},
|
51
49
|
},
|
52
50
|
{
|
53
|
-
test: /\.(
|
51
|
+
test: /\.(s[ac]|c)ss$/,
|
54
52
|
use: [
|
55
53
|
MiniCssExtractPlugin.loader,
|
56
54
|
"css-loader",
|
@@ -58,20 +56,23 @@ module.exports = {
|
|
58
56
|
loader: "sass-loader",
|
59
57
|
options: {
|
60
58
|
sassOptions: {
|
61
|
-
includePaths: [
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
59
|
+
includePaths: [
|
60
|
+
path.resolve(__dirname, "src/_components"),
|
61
|
+
path.resolve(__dirname, "src/_includes"),
|
62
|
+
],
|
63
|
+
},
|
64
|
+
},
|
65
|
+
},
|
66
|
+
],
|
66
67
|
},
|
67
68
|
{
|
68
69
|
test: /\.woff2?$|\.ttf$|\.eot$|\.svg$/,
|
69
70
|
loader: "file-loader",
|
70
71
|
options: {
|
71
72
|
outputPath: "../fonts",
|
72
|
-
publicPath: "../fonts"
|
73
|
+
publicPath: "../fonts",
|
73
74
|
},
|
74
|
-
}
|
75
|
-
]
|
76
|
-
}
|
77
|
-
}
|
75
|
+
},
|
76
|
+
],
|
77
|
+
},
|
78
|
+
};
|