Sha256: 641d7ccd052eee459c70fdfa8990b0252530021f31708f9ef5b8525dcd24afdc

Contents?: true

Size: 716 Bytes

Versions: 10

Compression:

Stored size: 716 Bytes

Contents

<%- if frontend_bundling_option == "esbuild" -%>
<%- if postcss_option -%>
import "$styles/index.css"
<%- else -%>
import "$styles/index.scss"
<%- end -%>
import "$styles/syntax-highlighting.css"
<%- else -%>
<%- if postcss_option -%>
import "index.css"
<%- else -%>
import "index.scss"
<%- end -%>
import "syntax-highlighting.css"
<%- end -%>

// Import all JavaScript & CSS files from src/_components
<%- if frontend_bundling_option == "esbuild" -%>
import components from "$components/**/*.{js,jsx,js.rb,css}"
<%- else -%>
const componentsContext = require.context("bridgetownComponents", true, /\.(js|css)$/)
componentsContext.keys().forEach(componentsContext)
<%- end -%>

console.info("Bridgetown is loaded!")

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bridgetown-core-2.0.0.beta3 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-2.0.0.beta2 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-2.0.0.beta1 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.4 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.3 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.2 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.1 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.0 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.0.beta3 lib/site_template/frontend/javascript/index.js.erb
bridgetown-core-1.3.0.beta2 lib/site_template/frontend/javascript/index.js.erb