Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/topics.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const topics = require("../blog/helpers/topics")
const topics = require("../src/helpers/topics")

describe("Test topics handlebars helper", () => {
it("single topic supported", () => {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const path = require("path")
const autoprefixer = require("autoprefixer")
const HTMLWebpackPlugin = require("html-webpack-plugin")
const MiniCSSExtractPlugin = require("mini-css-extract-plugin")
const globals = require("./blog/globals")
const globals = require("./src/globals")

// webpack config object
// noinspection WebpackConfigHighlighting
Expand Down Expand Up @@ -135,7 +135,7 @@ module.exports = {
test: /\.hbs$/,
loader: "handlebars-loader",
options: {
helperDirs: path.join(__dirname, "blog/helpers"),
helperDirs: path.join(__dirname, "src/helpers"),
precompileOptions: {
knownHelpersOnly: false,
}
Expand Down
4 changes: 2 additions & 2 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const MiniCSSExtractPlugin = require("mini-css-extract-plugin")
const HTMLWebpackPlugin = require("html-webpack-plugin")
const autoprefixer = require("autoprefixer");
const baseConfig = require("./webpack.config")
const globals = require("./blog/globals")
const globals = require("./src/globals")

const sidebar_authenticated = {user: globals.user, authenticated: true}
const sidebar_can_comment = {...sidebar_authenticated, can_comment: true}
Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports = {
test: /\.hbs$/,
loader: "handlebars-loader",
options: {
helperDirs: path.join(__dirname, "blog/helpers"),
helperDirs: path.join(__dirname, "src/helpers"),
precompileOptions: {
knownHelpersOnly: false,
}
Expand Down