Skip to content

Commit 5404b81

Browse files
committed
Get ionicons imported
1 parent 201c8a7 commit 5404b81

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232
"clean-webpack-plugin": "^0.1.19",
3333
"css-loader": "^0.28.11",
3434
"extract-text-webpack-plugin": "^4.0.0-beta.0",
35+
"file-loader": "^2.0.0",
3536
"glob-all": "^3.1.0",
3637
"html-webpack-plugin": "^3.2.0",
38+
"ionicons": "^4.4.3",
3739
"jquery": "^3.3.1",
3840
"lodash": "^4.17.5",
3941
"postcss": "^6.0.21",

webpack.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ module.exports = {
7373
hints: false,
7474
},
7575
// Passing an array loads them all but only exports the last.
76-
entry: ['./resources/assets/styles/main.css', './resources/assets/scripts/app.js'],
76+
entry: [
77+
'./resources/assets/styles/main.css',
78+
'./node_modules/ionicons/dist/css/ionicons.css',
79+
'./resources/assets/scripts/app.js'
80+
],
7781
output: {
7882
path: path.resolve(__dirname, 'public/assets'),
7983
filename: 'bundle-[hash].js',
@@ -86,6 +90,10 @@ module.exports = {
8690
test: /\.vue$/,
8791
loader: 'vue-loader',
8892
},
93+
{
94+
test: /\.(eot|woff|woff2|svg|ttf)([?]?.*)$/,
95+
loader: 'file-loader',
96+
},
8997
{
9098
test: /\.js$/,
9199
include: [
@@ -97,6 +105,7 @@ module.exports = {
97105
test: /\.css$/,
98106
include: [
99107
path.resolve(__dirname, 'resources'),
108+
path.resolve(__dirname, 'node_modules/ionicons/dist/css/ionicons.css'),
100109
],
101110
use: ExtractTextPlugin.extract({
102111
fallback: 'style-loader',

yarn.lock

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,10 @@ after@0.8.2:
809809
version "0.8.2"
810810
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
811811

812+
ajv-errors@^1.0.0:
813+
version "1.0.0"
814+
resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.0.tgz#ecf021fa108fd17dfb5e6b383f2dd233e31ffc59"
815+
812816
ajv-keywords@^3.1.0:
813817
version "3.2.0"
814818
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a"
@@ -2771,6 +2775,13 @@ figures@^2.0.0:
27712775
dependencies:
27722776
escape-string-regexp "^1.0.5"
27732777

2778+
file-loader@^2.0.0:
2779+
version "2.0.0"
2780+
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-2.0.0.tgz#39749c82f020b9e85901dcff98e8004e6401cfde"
2781+
dependencies:
2782+
loader-utils "^1.0.2"
2783+
schema-utils "^1.0.0"
2784+
27742785
filename-regex@^2.0.0:
27752786
version "2.0.1"
27762787
resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26"
@@ -3320,6 +3331,10 @@ invert-kv@^1.0.0:
33203331
version "1.0.0"
33213332
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
33223333

3334+
ionicons@^4.4.3:
3335+
version "4.4.3"
3336+
resolved "https://registry.yarnpkg.com/ionicons/-/ionicons-4.4.3.tgz#18f09b8277757721ceeb59b0ffb9d35e32c6fbb8"
3337+
33233338
is-absolute-url@^2.0.0:
33243339
version "2.1.0"
33253340
resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6"
@@ -6007,6 +6022,14 @@ schema-utils@^0.4.0, schema-utils@^0.4.4, schema-utils@^0.4.5:
60076022
ajv "^6.1.0"
60086023
ajv-keywords "^3.1.0"
60096024

6025+
schema-utils@^1.0.0:
6026+
version "1.0.0"
6027+
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"
6028+
dependencies:
6029+
ajv "^6.1.0"
6030+
ajv-errors "^1.0.0"
6031+
ajv-keywords "^3.1.0"
6032+
60106033
semver-diff@^2.0.0:
60116034
version "2.1.0"
60126035
resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36"

0 commit comments

Comments
 (0)