@atomicsmash/compiler 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ const compiler = webpack({
|
|
|
125
125
|
entryPoints[entryName] = {
|
|
126
126
|
import: path,
|
|
127
127
|
// Output filenames with content hash for fingerprinting
|
|
128
|
-
filename: `${path.replace(`${srcFolder}${pathSeparator}`, "").replace(extname(path), "")}${MODE === "production" ? `.[contenthash]` : ""}.js`,
|
|
128
|
+
filename: `${path.replace(`${srcFolder}${pathSeparator}`, "").replace(extname(path), "").replace("scripts/", "js/")}${MODE === "production" ? `.[contenthash]` : ""}.js`,
|
|
129
129
|
};
|
|
130
130
|
});
|
|
131
131
|
return entryPoints;
|
|
@@ -200,7 +200,9 @@ const compiler = webpack({
|
|
|
200
200
|
type: "asset/resource",
|
|
201
201
|
generator: {
|
|
202
202
|
binary: false,
|
|
203
|
-
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
203
|
+
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
204
|
+
.replace(".scss", ".[contenthash].css")
|
|
205
|
+
.replace("styles/", "css/"),
|
|
204
206
|
},
|
|
205
207
|
use: [
|
|
206
208
|
{
|
|
@@ -227,7 +229,9 @@ const compiler = webpack({
|
|
|
227
229
|
type: "asset/resource",
|
|
228
230
|
generator: {
|
|
229
231
|
binary: false,
|
|
230
|
-
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
232
|
+
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
233
|
+
.replace(".css", ".[contenthash].css")
|
|
234
|
+
.replace("styles/", "css/"),
|
|
231
235
|
},
|
|
232
236
|
use: [
|
|
233
237
|
{
|